Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2004-02-04 19:11:38

Greetings all,

I have a few more questions regarding using Boost.Build V2:

[1] (I'm pretty sure this is a GCC setup problem): Compiling/Linking a
simple Hello world app, I get

[begin] ..\..\code\hello\bin\gcc-3.0\debug\hello.exe
..\..\code\hello\bin\gcc-3.0\debug\hello.o: In function `main':
/cygdrive/d/devel/ADL++/code/hello/..\..\code\hello\hello.cpp:6: undefined
ence to `cout'
/cygdrive/d/devel/ADL++/code/hello/..\..\code\hello\hello.cpp:6: undefined
ence to `ostream::operator<<(char const *)'
/cygdrive/d/devel/ADL++/code/hello/..\..\code\hello\hello.cpp:6: undefined
ence to `ostream::operator<<(char)'
collect2: ld returned 1 exit status

g++ -g -o "..\..\code\hello\bin\gcc-3.0\debug\hello.exe"
ello\bin\gcc-3.0\debug\hello.o" -Wl,-Bdynamic -Wl,-Bstatic -Wl,-Bdynamic

...failed ..\..\code\hello\bin\gcc-3.0\debug\hello.exe...

I have GCC 2.95.3-5 installed at root (d:/devel/cygwin) and it worked fine
until I build and installed GCC 3.0 (to /usr/local). I'm pretty sure this is
to do with the version of libstdc++.a being linked -- which is why I wanted
to link $gcc-dir/lib/libstdc++.a (this solved the problem before. Does
anyone know whats wrong?

[2] How do I link external libraries (e.g. urlmon.lib) to an executable?

[3] Is it possible to perform specific actions on a target? E.g. move an exe
to a specific directory once built? Or run a target? Or specify an action
set, e.g.:

action-set finalize :

exe hello : hello.cpp


It's fast, it's easy and it's free. Get MSN Messenger today!


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