|
Boost Users : |
From: Grattan, Steven (grattans_at_[hidden])
Date: 2007-08-02 09:22:00
Hi,
I'm new to the boost libraries and wanted to write something that would
give me the names of all the entries in a directory in a platform
independent way. Having looked at the filesystem facilities provided
with boost I decided that this is just what I need and downlaoded
simple_ls.cpp just to check I could compile it before going any further.
I'm using Microsoft Visual Studio 2005 Express Edition and I get a few
compile errors when I tries to build it. Maybe I'm missing something
here but the error messages seem to reflect the reality since the items
it can't find don't exist in the boost files provided - I'm using boost
1.3.3.1
Here is the output from the compiler:
1>------ Build started: Project: boostFileSystem, Configuration: Debug
Win32 ------
1>Compiling...
1>simple_ls.cpp
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(51) : error
C2039: 'status' : is not a member of 'boost::filesystem::path'
1> x:\3rdpartytools\boost_1_33_1\boost\filesystem\path.hpp(34) : see
declaration of 'boost::filesystem::path'
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(54) : error
C2273: 'function-style cast' : illegal as right side of '->' operator
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(54) : error
C2228: left of '.leaf' must have class/struct/union
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(56) : error
C2039: 'is_regular' : is not a member of 'boost::filesystem'
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(56) : error
C2039: 'status' : is not a member of 'boost::filesystem::path'
1> x:\3rdpartytools\boost_1_33_1\boost\filesystem\path.hpp(34) : see
declaration of 'boost::filesystem::path'
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(56) : error
C3861: 'is_regular': identifier not found
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(59) : error
C2273: 'function-style cast' : illegal as right side of '->' operator
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(59) : error
C2228: left of '.leaf' must have class/struct/union
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(64) : error
C2273: 'function-style cast' : illegal as right side of '->' operator
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(64) : error
C2228: left of '.leaf' must have class/struct/union
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(71) : error
C2273: 'function-style cast' : illegal as right side of '->' operator
1>z:\visual studio
2005\projects\boostfilesystem\boostfilesystem\simple_ls.cpp(71) : error
C2228: left of '.leaf' must have class/struct/union
1>Build log was saved at "file://\\sw620_f\grattans$\Visual Studio
2005\Projects\boostFileSystem\boostFileSystem\Debug\BuildLog.htm"
1>boostFileSystem - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
Any help would be much appreciated,
Steve Grattan
This email (including attachments) is confidential and is solely intended for the addressee. Unless you are the addressee, you may not read, use or store this email in any way, or permit others to. If you have received it in error, please contact Visa Europe on +44 (0)20 7937 8111.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net