[ant-contrib - Help] Multiple compiler and linker element problems
"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=4296329 By: mike-al I'm trying to use cpptask to compile and link a large project. In an upper level directory I have a build.xml file that contains the cc task. That cc task has a compiler and linker element. I have also created several other compiler and linker elements that only contain platform specific compiler/linker options. Also, in the lower level target directories, I also have created compiler/linker elements for each target, so each target can specify target specific compiler/linker options. My problem is, in my cc task at the upper level I try to merge all these different compiler elemetns using "refId". So that each different level of the build can specify there own options. But, only the first compile element that I use "redId" is used. Its like the others are not even seen. I've tried to use the "extends" option as well. That seems to work for extending compilers, but does not work for extending linkers. Any ideas? I've seen code examples on the interneat that use multiple <compiler "refid"="???"/> statements in a single cc task. But I'm having no luck trying to do that. If I'm way off base here, any idea how I should be bringing in compiler options from different targets, platforms, outfile types, etc... I'm using the latest version of Ant Contrib (as of 5/1/07). Thanks. Mike ______________________________________________________________________ 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/