Code::Blocks Forums

User forums => Help => Topic started by: o4b on October 25, 2009, 11:39:38 pm

Title: Boost problems
Post by: o4b on October 25, 2009, 11:39:38 pm
So I am trying to use boost/smart_ptr.hpp in my codeblocks project. I tried to follow the steps on the BoostWindowsQuickRef, but still cant get it working. Knowing that I do not need to build boost to use just the header only files, this is what I did:

Installed boost to C:\boost_1_40_0
In codeblocks, made a new global variable called boost, with the base path to be C:\boost_1_40_0 and the include path to be C:\boost_1_40_0\boost.
In my "globals.h" file added the line "#include <boost/smart_ptr.hpp>"
In the "search directories" part of my project's build options I added "$(#boost.include)"

Could someone please tell me where I am going wrong here? The compilier is telling me that the file cannot be found. Thanks
Title: Re: Boost problems
Post by: oBFusCATed on October 26, 2009, 12:47:53 am
In codeblocks, made a new global variable called boost, with the base path to be C:\boost_1_40_0 and the include path to be C:\boost_1_40_0\boost.
That should be c:\boost_1_40_0\ without the boost thing, I think
Title: Re: Boost problems
Post by: stahta01 on October 26, 2009, 02:24:17 am
In codeblocks, made a new global variable called boost, with the base path to be C:\boost_1_40_0 and the include path to be C:\boost_1_40_0\boost.
That should be c:\boost_1_40_0\ without the boost thing, I think

I agree.

Both the base and include should be set to "C:\boost_1_40_0".

Tim S.
Title: Re: Boost problems
Post by: o4b on October 26, 2009, 09:17:30 am
Thanks guys, it works now.