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_options.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