News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Boost problems

Started by o4b, October 25, 2009, 11:39:38 PM

Previous topic - Next topic

o4b

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

oBFusCATed

Quote from: o4b on October 25, 2009, 11:39:38 PM
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

stahta01

Quote from: oBFusCATed on October 26, 2009, 12:47:53 AM
Quote from: o4b on October 25, 2009, 11:39:38 PM
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

o4b

Thanks guys, it works now.