User forums > Help

Boost problems

(1/1)

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.

--- End quote ---
That should be c:\boost_1_40_0\ without the boost thing, I think

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.

--- End quote ---
That should be c:\boost_1_40_0\ without the boost thing, I think

--- End quote ---

I agree.

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

Tim S.

o4b:
Thanks guys, it works now.

Navigation

[0] Message Index

Go to full version