There is a link to the sourceforge boost page, but there is no exe to download.Probably you are just a bit too early? I didn't even realise that boost 1.35.0 is out... :shock:
set PATH=%PATH%;C:\MinGW\bin
Now, the next question is, how do i link it in Codeblocks to my program ?
* Add whatever folder contains the boost/*.hpp files to your project's include search directories.
* Add whatever folder contains the library files you just built to your project's library search directories.
some basic programming concepts? :lol: :lol: :lol:
...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.
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.
Then, add "boost_filesystem-1_35" to the list of libraries to link in the Linker tab of your project's Build options.
Strange. There is no such file on my entire hard-drive. Maybe i didn't succeed in building boost after all ?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.
What to do next?Although providing support for 3rd party libraries is (as previously stated) outside the purview of the C::B forums, I think a quick-start guide for Boost+C::B would not go amiss in the Wiki. In the meantime, I'll also send you a personal message as soon I've rebuilt Boost myself.
Helo again,
i think i succesfully built boost. Now, the next question is, how do i link it in Codeblocks to my program ?
Note:
boost build directory is C:\Documents and settings\Kane\build-boost\
For those interested, a BoostWindowsQuickRef (http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef) article is now available in the Wiki.Well done TDragon, nice work!
Now, that i am looking at the bjam output, while it is a big mess, i can see a lot of g++ related "failed" messages.This may or may not be normal. Hopefully the libraries you want are getting built.
C:\CodeBlocks\MinGW\bin\ld.exe: cannot find -lboost_regex-mgw34-mt-1_35.libthis error indicates that you entered "boost_regex-mgw34-mt-1_35.lib" into the linker options which is wrong. please enter "boost_regex-mgw34-mt-1_35" (notice the missing ".lib").
In addition: You are using the MinGW compiler, right? I wonder why you get ".lib" files when you compile Boost. Using MinGW you should have compiled ".a" files...?! Probably you are mixing MinGW compilation with some unsupported format (e.g. you compiled boost wit a compiler that is not compatible with MinGW)???
Nope, Boost Build causes GCC to create .lib files as of Boost 1.35.I just tried: Indeed! ...how weired. :shock: That surely will cause some trouble. Strange they decided to do so.
- using msys
- go to boost root dir
# cd tools/jam/src
# ./build.sh
- go back to boost root dir
# tools/jam/src/bin.ntx86/bjam toolset=gcc variant=release threading=multi link=static stage
this error indicates that you entered "boost_regex-mgw34-mt-1_35.lib" into the linker options which is wrong. please enter "boost_regex-mgw34-mt-1_35" (notice the missing ".lib").