5 Replies - 626 Views - Last Post: 10 February 2013 - 09:29 AM Rate Topic: -----

#1 handoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 07-February 13

Adding Boost 1.53.0 to Code::Blocks

Posted 09 February 2013 - 08:12 PM

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?

Is This A Good Question/Topic? 0
  • +

Replies To: Adding Boost 1.53.0 to Code::Blocks

#2 handoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 07-February 13

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...
Was This Post Helpful? 0
  • +
  • -

#3 handoman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 07-February 13

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?
Was This Post Helpful? 0
  • +
  • -

#4 snoopy11  Icon User is online

  • Engineering ● Software
  • member icon

Reputation: 802
  • View blog
  • Posts: 2,360
  • Joined: 20-March 10

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.
Was This Post Helpful? 0
  • +
  • -

#5 jimblumberg  Icon User is offline

  • member icon


Reputation: 4098
  • View blog
  • Posts: 12,679
  • Joined: 25-December 09

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
Was This Post Helpful? 0
  • +
  • -

#6 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Adding Boost 1.53.0 to Code::Blocks

Posted 10 February 2013 - 09:29 AM

According to the docs it links to the non-header-only boost::system library, so you at least need to add that into the linker spec.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1