BOOST question

  • Thread starter Thread starter Seth
  • Start date Start date
S

Seth

I can't get this thing made for the life of me. I've gone through every
step per the Boost website regarding using bjam. Nothing. Can anyone
give any advice or are there pre-made boost hpps for Windows platform?

thanks in advance
seth
 
Seth said:
I can't get this thing made for the life of me. I've gone through
every step per the Boost website regarding using bjam. Nothing. Can
anyone give any advice or are there pre-made boost hpps for Windows
platform?

Tell us exactly what you're trying, using which version of VC++, and how
it's not working.

I've built boost dozens of times using VC6 - VC8 and never run into any
serious problems building it while following the build instructions from the
boost website.

-cd
 
I was not able to get bjam to work. I finally just used nmake on the
regex library and got my build. I'm using VC8, VS2005, and Boost
1.33.1. There's a sample of code I was trying to build that had a
#include <boost\regex.hpp> line that STILL won't get included.

fatal error C1083: Cannot open include file: 'boost\regex.hpp': No such
file or directory

Thanks for the reply,
seth
 
Seth said:
I was not able to get bjam to work. I finally just used nmake on the
regex library and got my build. I'm using VC8, VS2005, and Boost
1.33.1. There's a sample of code I was trying to build that had a
#include <boost\regex.hpp> line that STILL won't get included.

fatal error C1083: Cannot open include file: 'boost\regex.hpp': No such
file or directory

This has nothing to do with boost. All libraries (like boost, or xerces)
use directory structure in their code for include directive, like:

#include <LibDir/SomeFile.hpp>

What you should do is add the folder in which LibDir is located (i.e.
parent to LibDir) to Additional Include Directories in the C/C++
properties of the project. If LibDir is under the project folder then
add "$(ProjectDir)" in this field.

Another solution is to copy whole library to Microsoft installation
folder (C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include).

And yet another solution would be to put the library wherever you like
and add path to it in Tools > Options > Projects > VC++ Directories, in
the list of Include files. This one is recommended I believe.
 
Seth said:
I was not able to get bjam to work.

Hi Seth,

just download boost-jam-3.1.13-1-ntx86.zip from
http://sourceforge.net/project/showfiles.php?group_id=7586.
Unpack it and make sure that bjam.exe is in your PATH.

Then, for vc-8.0, issue something like
bjam "-sTOOLS=vc-8_0" install
from the command line.

If your compiler is not in C:\Program Files\Microsoft Visual Studio 8\VC,
you have to set set the -sVC80_ROOT command line switch too.

Good luck,
Christian
 
Mihajlo,

After programming in a variety of other languages C++ is like learning
to drive a large truck with manual transmission after years of driving
a small sedan with automatic transmission!

Thanks so much for the detailed list of options. I am resolved to
adding C++ to my knowledge base and I appreciate help with the steep
learning curve.

Seth
 
Back
Top