Boost logo

Boost-Build :

From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2007-08-03 19:20:02


The following Jamroot file does not work because a
newline is embedded at the end of the variable that is
filled with SHELL.

# Begin Jamroot
local wx_cppflags = [ SHELL "wx-config --cppflags" ] ;

exe hello : hello.cpp : <cxxflags>"$(wx_cppflags)" ;
# End Jamroot

How can I remove this newline? I tried replacing the
SHELL command with "wx-config --cppflags | head -n 1 |
sed -e s/\s$//"; However, the newline persisted which
leads me to believe Boost.Jam has appended it.

Thank you,


# Output
cstankevitz_at_cstankevitz-laptop:~/temp$ bjam
...found 8 targets...
...updating 2 targets...
gcc.compile.c++ bin/gcc/debug/hello.o
g++: no input files
/bin/sh: -c: not found

    "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall
-g -fPIC
-I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__
   -c -o "bin/gcc/debug/hello.o" "hello.cpp"

...failed gcc.compile.c++ bin/gcc/debug/hello.o...
...skipped <pbin/gcc/debug>hello for lack of
...failed updating 1 target...
...skipped 1 target...

Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

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