Boost logo

Boost-Build :

From: Claudio Pacciarini (clau3107_at_[hidden])
Date: 2006-01-17 01:34:41

Hi Vladimir,

Thanks for your email and sorry for this late response.

I got frustrated with my lack of progress and understanding on bjam that I
temporarily gave up.

It's a wonderful project but I couldn't solve certain things and gave up and
I don’t have much time to loose.

Just in case you are curious about, I’ was trying to build a very simple
project, like a hello world program, but composed of the main program, a
static lib, a dynamic lib and a unit test.

The idea was to build everything using bjam2, using boost test for the unit
testing. The build should be Windows and Linux compatible, passing certain
compiler and linker flags depending on the platform.

I couldn't get this to work on Windows and Linux, with the same set of jam
files. I've tried everything and I was stuck for days until I finally gave

I'm attaching the project files here, just in case you or someone else want
to take a look and make it work. Having this solved will help me and perhaps
many more adopt bjam, as doing what I’ve trying exercises and solves most
common build operations.



PS: for the WIndows compiler, I want to pass:

# For windows:

export CXXFLAGS = /nologo /EHsc /GR /Za /W4 /Wp64 /WX /Zc:forScope
/Zc:wchar_t /Od /Ob0 /Z7 /RTC1 /GS /GF # (Debug)
# export CXXFLAGS = /nologo /EHsc /GR /Za /W4 /Wp64 /WX /Zc:forScope
/Zc:wchar_t -O2 -Ob1 /GS /GF # (Release)

# For Linux:

# export CXXFLAGS = Wall -Werror -ansi -pedantic-errors -O0 -fnoinline
-Wpointer-arith -Wstrict-prototypes -Weffc++ # (Debug)
# export CXXFLAGS = Wall -Werror -ansi -pedantic-errors -O3
-finline-functions -Wpointer-arith -Wstrict-prototypes -Weffc++ # (Release)

>From: Vladimir Prus <ghost_at_[hidden]>
>Reply-To: "Boost.Build developer's and user's
>To: "Boost.Build developer's and user's list" <boost-build_at_[hidden]>
>Subject: Re: [Boost-build] Bjam newbie - questions.
>Date: Fri, 13 Jan 2006 11:22:50 +0300
>Hi Claudio,
> > First at all, thanks for so much for your responses, your help was
> > absolutely invaluable and enlightening. Very appreciated. With your
> > comments I was able to get the job done, at last! It was pretty
> > being stuck at this without a clue.
> >
> > Volodya, just one tiny, not critical question, regarding this code
> > > # Get all child Jamfiles
> > > local sub = [ glob */Jamfile ] ;
> > > # Strip filenames, getting just directories;
> > > sub = $(sub:D) ;
> > > for local s in $(sub)
> > > {
> > > build-project $(s) ;
> > > }
> >
> > Do I just put that code inside test's Jamfile and that's it? Do I have
> > import something or put anything else?
> > With this code, I'm getting this error:
> >
> > C:/dev/boost/tools/build/v2/util\path.jam:162: in path.join from module
> > path
> > error: only first element may be rooted
>Sorry, it seems like there's a bug in current code. I've fixed this, and
>tested with the following Jamroot (copy-paste of actual working example):
> local sub = [ glob */Jamfile ] ;
> sub = $(sub:D) ;
> for local s in $(sub)
> {
> build-project $(s) ;
> }
>Can you update to CVS HEAD and try again?
>- Volodya
>Boost-build mailing list

** **
** WARNING: This email contains an attachment of a very suspicious type. **
** You are urged NOT to open this attachment unless you are absolutely **
** sure it is legitmate. Opening this attachment may cause irreparable **
** damage to your computer and your files. If you have any questions **
** about the validity of this message, PLEASE SEEK HELP BEFORE OPENING IT. **
** **
** This warning was added by the IU Computer Science Dept. mail scanner. **

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at