Sign in to follow this  

Install Boost

This topic is 4205 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do get boost to work with VC71? I tried reading http://www.boost.org/more/getting_started.html#Build_Install but there is a ton on information and I'm kind of lost as to where to start.

Share this post


Link to post
Share on other sites
start by reading the information they've provided?

It boils down to getting bjam, setting your path, and running bjam from the command line with the right -sTOOLS=***** thing.

If you prefer scouring forums over reading manuals, it may be worht looking through the jounals. Someone (either SiCrane or Fruny I think) posted a good article in their journal that went through building boost.

It really is quite simple though - read the instructions.

Share this post


Link to post
Share on other sites
Installing boost is a pain on Windows. I've done it a couple times for VC 7.1. If you follow the instructions on that page, it should all work. Just make sure you download the prebuilt binary of bjam (it's on their sourceforge page).

I have never seen a prebuilt binary package of boost - maybe the above poster could provide a link?

Also note, that many of the boost tools do not require compiling to use! For example, weak_ptr simply requires the header files - no compilation necessary.

Share this post


Link to post
Share on other sites
I don't remember writing any such journal entry, and Fruny doesn't have one....

Personally, I don't use bjam to install boost. I just unzip it to a directory and add the boost directory to my include path. If I use a part of boost that normally requires bjam to build, I instead add the source files from the lib directory to my project. This requires uncommenting the #define BOOST_ALL_NO_LIB line in the config/user.hpp file and may require additional preprocessor definititions for the various libraries. For example, boost::python needs to have BOOST_PYTHON_STATIC_LIB defined if you don't use the bjam built DLL.

Share this post


Link to post
Share on other sites
I had this problem--you can read the thread here. After being flamed mercilessly for not making it through that imposing "getting started" page (I feel your pain), I got the following instructions:
Quote:

1)Download Boost Libraries
2)Download Boost Jam and extract to your boost folder(should be named 'boost-[majorver].[minorver].[rev]' FOR EXAMPLE: 'boost-1.33.1'
3)Commandline to where bjam.exe has been put(this is done using the complex command 'cd'(changedir)
4)You will now want to type 'bjam.exe -[options] [install/stage]'
FOR EXAMPLE: If you're using the 2005 revision of the Microsoft Compiler(either Visual Studio 2k5, or Express Edition) and you simply want the libary files in one place so you can sort it out later, you would type: "bjam.exe -sTOOLS=vc-8_0 stage"

Except, of course, you'll change vc-8_0 to vc-7_1 (I believe that's correct).

Good luck!

Share this post


Link to post
Share on other sites
Alright it dumped a bunch of libs in C:\boost_1_33_1\bin\boost\libs. But each in its own subdirectory.

In order to use these do I need to add each one individually to my compilers linking path? Or is it ok to move them all in to one directory and simply use that one?

Share this post


Link to post
Share on other sites
No. Now you use the 'install' parameter where before you used 'stage'. Honestly, the install process is simple if you take it one step at a time and do not try to skip ahead.

Share this post


Link to post
Share on other sites
OK now I typed "bjam.exe -sTOOLS=vc-7_1 install"

But I get a link error LNK1104: cannot open file 'libboost_iostreams-vc71-mt-1_33_1.lib'

I checked and the file does exist. What else do I have to do?

Share this post


Link to post
Share on other sites
"bjam.exe -sTOOLS=vc-7_1 install" installs libs into "lib" directory, in your case it may be C:\lib. You need to add this directory to Visual Studio "Library files" path.

Share this post


Link to post
Share on other sites

This topic is 4205 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this