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

Marcel Ruff <[email protected]> Sun, 23 Nov 2008 13:56:28 +0100
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Derek Baum schrieb:
> HI,
>
> try looking at
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=1576291&group_id=36177&atid=416920
>
> which contains a patch for this problem.
>   
Thank you, this patch fixes the problem.

Curt, could you please apply the patch?

Thanks
Marcel
> Derek
>
> 2008/11/22 Marcel Ruff <[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
>>     

-- 
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=/