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]
gcc.link ..\..\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
refer
ence to `cout'
/cygdrive/d/devel/ADL++/code/hello/..\..\code\hello\hello.cpp:6: undefined
refer
ence to `ostream::operator<<(char const *)'
/cygdrive/d/devel/ADL++/code/hello/..\..\code\hello\hello.cpp:6: undefined
refer
ence to `ostream::operator<<(char)'
collect2: ld returned 1 exit status

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

...failed gcc.link ..\..\code\hello\bin\gcc-3.0\debug\hello.exe...
[end]

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 :
<action>move
<action>run
;

exe hello : hello.cpp
:
<bind-action>finalize
;

Regards,
Reece

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger

 


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