Code::Blocks Forums
User forums => Help => Topic started 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
-
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
-
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.
-
Thanks guys, it works now.