Author Topic: Boost problems  (Read 4902 times)

o4b

  • Guest
Boost problems
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Boost problems
« Reply #1 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
(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!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Boost problems
« Reply #2 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.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

o4b

  • Guest
Re: Boost problems
« Reply #3 on: October 26, 2009, 09:17:30 am »
Thanks guys, it works now.