User forums > Using Code::Blocks

Boost::test won't link

<< < (2/2)

smallB:
Ok I did it.
For others, in order to configure boost for gcc:
1. Download boost
2. install it according to instructions from boost site
3. In code::blocks in Settings/global variables add path to your boost library for base and lib fields (this should be located in stage/lib folder)
4. In code::blocks in Project/Build options..., linker settings tab, link libraries - add here those libraries
5. In code::blocks in Project/Build options...Search directories tab in compiler subtab add $(#boost) and in linker subtab add $(#boost.lib).
Done. Uphhh... Spent few days on this but it was worth it. Now I can use this great IDE with gcc compiler which at the moment of this writing is miles ahead of MS. I am not being stopped in my personal development by MS - C++11 here I come!

oBFusCATed:

--- Quote from: smallB on October 21, 2011, 10:23:14 am ---5. In code::blocks in Project/Build options...Search directories tab in compiler subtab add $(#boost) and in linker subtab add $(#boost.lib).

--- End quote ---
I think it should be $(#boost.include) to be fully correct

smallB:
Hi, I've put just $(#boost) and it seems to work

Navigation

[0] Message Index

[*] Previous page

Go to full version