User forums > Help
using boost/filesystem
dje:
Could you give more details on
--- Quote ---some basic programming concepts
--- End quote ---
? :lol: :lol: :lol:
TDragon:
Sure. In this case, there are two that apply:
1. RTFM! The boost documentation tells you about the various libraries that are built and how to use them.
2. Understand your compiler! You need to grasp of the concepts of compile-time and link-time resolution and what files and commands the compiler needs in order to perform them. See (1) as applied to the compiler documentation, take a class in C or C++, or read a book.
And that's as detailed as is appropriate for the Code::Blocks forums.
Cheers,
John E.
kanesoban:
--- Quote ---...add "DriveLetter:\Path\To\SomethingWithBoostInIt\include\boost_1_35" in the list of directories in the Compiler tab of the Search Directories tab of your project's Build options.
--- End quote ---
Done.
--- Quote ---Also depending on how you've run bjam, the full path to libboost_filesystem-1_35.a will be like "DriveLetter:\Path\To\SomethingWithBoostInIt\MaybeLib\libboost_filesystem-1_35.a". In this case, add "DriveLetter:\Path\To\SomethingWithBoostInIt\MaybeLib" in the list of directories in the Linker tab of the Search Directories tab of your project's Build options.
--- End quote ---
Strange. There is no such file on my entire hard-drive. Maybe i didn't succeed in building boost after all ?
--- Quote ---Then, add "boost_filesystem-1_35" to the list of libraries to link in the Linker tab of your project's Build options.
--- End quote ---
Done.
Now, the compiler gives this message when i try to build my project:
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: C:\Program Files\boost\boost_1_35_0\libs: No such file: Permission denied
TDragon:
--- Quote from: kanesoban on July 15, 2008, 11:29:19 am ---Strange. There is no such file on my entire hard-drive. Maybe i didn't succeed in building boost after all ?
--- End quote ---
That might be so.
At any rate there should be a directory somewhere full of Boost library files that were built, several of which should have "filesystem" in the name. Like I said, I might have gotten the name of the file wrong.
kanesoban:
--- Quote ---At any rate there should be a directory somewhere full of Boost library files that were built, several of which should have "filesystem" in the name. Like I said, I might have gotten the name of the file wrong.
--- End quote ---
Well, i'm pretty much stuck. There is no such file as you describe (no .a file that has anything to do with boost or filesystem) in my HD, and i don't know if i really succeded in building boost or not. I'm not sure, how would i know, if i did succed. I posted a message on one of the boost mailing lists asking how do i know, if the build did succed, but no answer.
What to do next?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version