[ant-contrib - Help] order of linker command line arguments

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4266931
By: harlancrystal

Hi,

The order of command line arguments is actually important for the gnu linker.
Specifically, I'm having this problem:

Ant generates:
gcc -lsomelib -lanotherlib -lsomethingelse -o myprogram.exe myprogram.o

That doesn't work, but the following does:
gcc -o myprogram.exe myprogram.o -lsomelib -lanotherlib -lsomethingelse 


After reading through a whole bunch of random ant/cpptasks pages, I still can't
figure out if this is something I can control.  Do I need to hack the cpptasks
source to fix this?

thanks,
-harlan

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=113701

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.