I've been trying to get boost libraries to work with code::blocks(mingw), but I can't seem to get it right. I have followed the instructions on official website:
http://www.boost.org...a-boost-library
I built the libs and everything and added the include and lib to my compiler search directory... but what do i do next? when I write #include <boost... nothing comes up. I copied the test code, and it failed saying :fatal error: boost/lambda/lambda.hpp: No such file or directory. Iv'e been searching around and I couldn't find any good tutorial for setting up Boost, even though it seems like a very useful and popular library...
any help?
Adding Boost 1.53.0 to Code::Blocks
Page 1 of 15 Replies - 122 Views - Last Post: 10 February 2013 - 09:29 AM
Replies To: Adding Boost 1.53.0 to Code::Blocks
#2
Re: Adding Boost 1.53.0 to Code::Blocks
Posted 09 February 2013 - 11:40 PM
ugh Okay, so I got it to work by actually placing boost's include files into mingw's include folder. It's so fustrating because I shoundn'e have to do that right? I should be about to just add it through the compiler search directory settings. Does anybody know why that wouldn't work? I've included other libraries that way...
#3
Re: Adding Boost 1.53.0 to Code::Blocks
Posted 09 February 2013 - 11:57 PM
okay I guess its not working... I keep getting: undefined reference to `boost::chrono::steady_clock::now()'
I don't understand...I don't have to link the chrono file do I?
I don't understand...I don't have to link the chrono file do I?
#4
Re: Adding Boost 1.53.0 to Code::Blocks
Posted 10 February 2013 - 12:01 AM
You can place the libary's in the MinGW lib folder or
include them in the libray search path
Snoopy.
include them in the libray search path
Snoopy.
#5
Re: Adding Boost 1.53.0 to Code::Blocks
Posted 10 February 2013 - 08:41 AM
You will probably also need to add the boost library to the linker settings. Not all boost libraries are header only libraries some also use a library file.
Jim
Jim
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|