Boost logo

Boost Users :

From: Garrett McGrath (gmcgrath815_at_[hidden])
Date: 2007-04-23 09:49:24


Try removing the quotes from the line, I found that for whatever reason
things appeared to work better without them. Oh and instead of -sTOOLS=msvc
switch it to your version of VC, eg. Vc-8_0 for 8.0 (2k5).

 

-Garrett McGrath

Software Engineer

CSBMB Princeton University

Green Hall

1-(609)-258-0285

 

From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Beauregard Dommit
Sent: Friday, April 20, 2007 8:29 PM
To: boost-users_at_[hidden]
Subject: [Boost-users] Help installing (building) boost - Windows2K w/
MSVC++

 

I'm trying to install boost on Windows 2000 running Visual C++, and having
lots of problems. It's W2K w/ SP4, and SP6 for Visual Studio.

First, I take it there is no precompiled "install" package, even for
Windows?

First problem - I unpack boost and put bjam in the boost directory. I run
it from a command prompt w/ something like (I've tried a few variations):
bjam "-sTOOLS=msvc" "--prefix=C:\program files\boost"
"--PYTHON-ROOT=C:\Program Files\Python25" "--with-python-version=2.5"
"--builddir=G:\temp\buildboost" install > install_log.txt
(Sorry for whatever the mailer might be doing to the text - the above is one
line.) I also tried the command line with lower case for the Python stuff -
the above was my last desperate attempt.

In my output file I see:
        skipping Boost.Python library build due to missing or incorrect
configuration

        couldn't find Python.h in "c:/Python25/include"

        You can configure the location of your python installation by
setting:
        PYTHON_VERSION - The 2-part python Major.Minor version number (e.g.
                 "2.2", NOT "2.2.1") - currently "2.5"
        etc................

I guess I'm doing something stupid here, but what? Jam is apparently
finding the prefix and builddir OK - it does build boost, or at least part
of it, and installs a bunch of libraries and includes in the right place. I
do have Python installed and working in C:\Program Files\Python25, and
Python.h is there.

Second problem - after the above, I get about 2000 lines of errors, or
mostly errors. A lot of them are duplicates, but still that doesn't seem
good. The first ones are about the Program Options package. That was the
part of Boost I was going to try using first, so I'd like to get that fixed.
Here are the error msgs:
        vc-C++
 
G:\temp\buildboost\bin\boost\libs\program_options\build\libboost_program_opt
ions.lib\msvc\debug\runtime-link-static\cmdline.obj
        cmdline.cpp

 
G:\Temp\newboost\boost_1_33_1\boost/program_options/options_description.hpp(
156) : error C2258: illegal pure syntax, must be '= 0'

 
G:\Temp\newboost\boost_1_33_1\boost/program_options/options_description.hpp(
156) : error C2252: 'm_default_line_length' : pure specifier can only
bespecified for functions

 
G:\Temp\newboost\boost_1_33_1\boost/program_options/options_description.hpp(
159) : error C2065: 'm_default_line_length' : undeclared identifier

Then a bunch of errors about the Bind package, etc, etc, etc. If someone
can help me fix the above problems I'll be very grateful.

Gard



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net