stdcxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <>
Subject Re: Problem building Tuscany SDO with stdcxx on Linux
Date Wed, 04 Oct 2006 20:59:31 GMT
Geoffrey Winn wrote:
> We use automake to drive the build of SDO, and the compile and link happen
> as separate events. Before I started the transition to stdcxx we used 
> g++ as
> both the compiler and linker. I now use gcc as the compiler but I'm not 
> sure
> what to use as the linker. Are there any examples in the stdcxx
> test/examples where the code is compiled and linked as separate commands?
> Then (being lazy) I could plagiarise that example.

Yes, they all should be compiled and linked in two separate steps
(when the don't it's not intended). You can see a sample command
line when building the examples. For instance, here are the
commands to build the accumulate example with gcc (taken from
our nightly build log of a 12d build type; btw., the logs along
with the test results will be available shortly on our web page):

gcc -c 
  -pedantic -nostdinc++ -O2  -W -Wall -Wcast-qual -Winline -Wshadow 
-Wwrite-strings -Wno-long-long -Wcast-align 

gcc accumulate.o -o accumulate 
-L/build2/batman/5.0.0/builds/33131907/source-buildspace/build/lib -lstd 
  -lsupc++ -lm


View raw message