Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-04-30 19:43:48


"szhou98" <szhou98_at_[hidden]> writes:

> Hi,
>
> I used bjam and boost distribution to build fstream_test executable
> with no problems. But, if I build fstream_test.cpp menually from
> command line, the compiler generates an error C2504 that complains
> about the undefined base class to the basic_filebuf<> class when
> parsing boost_1_31_0\boost\filesystem\fstream.hpp file.
>
> Since the bjam build has no glitches at all, I assume it has
> something to do with compiler option switch values, or some macro
> definitions that I didn't set right. I went through allyourbase.jam,
> boost_base.jam, and msvc-tools.jam files to look for clues with no
> success.
>
> Is there anyone in boost build community able to shed some light
> on the cause of that compilation error, and why bjam build was
> successful?

You can always run your bjam build as

bjam -d+2 ...

and then compare the command-lines.

or, if you don't need to build but just want to look at command-lines

bjam -n -a ...

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk