simple_ls.cpp build issues
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.
Hello Steven, I already removed 1.33 from my pc, but the simple_ls works on 1.34 (with VStudio 2003 sp1). Even the sample_ls.cpp from 1.33 works in conjuntion with 1.34. I don't know if this helps... Wkr, me
Thanks but I solved it. It seems the version I downloaded was not compatible with 1.3.3.1. I found another version of the example and that has worked so I'm on my way :) Thanks again, Steve -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of gast128 Sent: 06 August 2007 23:07 To: boost-users@lists.boost.org Subject: Re: [Boost-users] simple_ls.cpp build issues Hello Steven, I already removed 1.33 from my pc, but the simple_ls works on 1.34 (with VStudio 2003 sp1). Even the sample_ls.cpp from 1.33 works in conjuntion with 1.34. I don't know if this helps... Wkr, me _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users 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.
participants (2)
-
gast128
-
Grattan, Steven