User forums > Help
Configuring Boost with Code::Blocks
oBFusCATed:
Also don't use full paths to the libraries, just their names. In the Build options -> Linker setting -> Link libraries
If I remember correctly using full paths is known to fail.
Master:
--- Quote from: oBFusCATed on April 05, 2012, 08:21:14 am ---Also don't use full paths to the libraries, just their names. In the Build options -> Linker setting -> Link libraries
If I remember correctly using full paths is known to fail.
--- End quote ---
thank you dear oBFusCATed , i tested your suggestion , but it turned up that it was wrong . actually there is nothing wrong with the full path .
here is the answer though :
http://stackoverflow.com/questions/10022706/having-issue-in-configuring-boost-with-codeblocks/10035917#10035917
i rebuilt the boost with
--- Code: ---bjam toolset=gcc --build-type=complete stage variant=debug,release threading=multi link=static
--- End code ---
and then added the following line to my source code
--- Code: ---#define BOOST_THREAD_USE_LIB
--- End code ---
and there it goes :) compiling , linking just fine :)
and i didnt change any of my previouse configurations , just rebuilt and added that line , done :)
thanks again everyone
GigaGerard:
How to get Boost working in CodeBlocks with GCC
and get the test file of Alpha in post 2 running?
I did it!
Advice that helped me most was:
Change the word msvc to gcc in the boost file project-config.jam and run b2 to compile boost (again).
Not only set the two paths in CodeBlocks > Settings > Global Variables > Build-in fields:
> base > C:\MY_DIR\boost_1_56_0\
> lib > C:\MY_DIR\boost_1_56_0\stage\lib
But also set them in CodeBlocks > Settings > Compiler > Search directories
> Compiler > Add >
> Linker > Add >
Navigation
[0] Message Index
[*] Previous page
Go to full version