Mac OS-X: shared library linking of C++ uses 'gcc' instead of 'g++'

Marcel Ruff <[email protected]> Sat, 22 Nov 2008 15:41:34 +0100
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Hi,

I try to link a C++ shared library with cpptasks-1.0b5
on Mac OS-X 10.5 with i686-apple-darwin9-gcc-4.0.1

The command line generated is:

  gcc -g -prebind -dynamiclib -o libxmlBlasterClientD.dylib 
../build.tmp/objCPPD/ThreadImpl.o ...

and fails to link.

When changing on console to

 g++ -g -prebind -dynamiclib -o libxmlBlasterClientD.dylib 
../build.tmp/objCPPD/ThreadImpl.o ...

it links fine.

How can i convince cpptask to use 'g++' instead of 'gcc'?
Using

  <linker name="g++"/>

is ignored (using <linker name="ld"/> however shows 'ld' on command
line, but fails to link with it).

Thanks
Marcel

-- 
Marcel Ruff
http://www.xmlBlaster.org
http://watchee.net



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/