ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Can you compile C++ and C from ant
Date Wed, 10 Jul 2002 21:52:32 GMT

----- Original Message -----
From: "Jennifer Moter" <jmoter@sega.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Wednesday, July 10, 2002 2:03 PM
Subject: RE: Can you compile C++ and C from ant


> these are the gcc command line args - here's the gcc command:
>
>
gcc  -I../msclib -I../cryptlib -I../thdlib -I../pktlib -I../niolib  -D__UNI
> X__  -DNO_WCHAR -c authServerData.cpp

yeah, but look what it created

      [cc] Executing 'gcc' with arguments:
       [cc] '-c'
       [cc] '-o'
       [cc] '/home/jmoter/source/swan/lib/athlib/athlib.o'
       [cc] '/home/jmoter/source/swan/src/libsrc/athlib/athlib.cpp'
       [cc] '__UNIX__'
       [cc] 'NO_WCHAR'
       [cc] 'DEBUG'
       [cc] '-g'
       [cc] '-Wall'
       [cc] '-fPIC'
       [cc] '-I/home/jmoter/source/swan/src/libsrc/**/*.h'
       [cc] '-I/home/jmoter/source/swan/src/include'
       [cc]

gcc -c -o '/home/jmoter/source/swan/lib/athlib/athlib.o'
'/home/jmoter/source/swan/src/libsrc/athlib/athlib.cpp'
 __UNIX__ NO_WCHAR
DEBUG -g -Wall -fPic -I/home/jmoter/source/swan/src/libsrc/**/*.h' -I/home/j
moter/source/swan/src/include'

see the difference? the <compiler args > are for compiler args like -O6, not
definitions. You are putting definitions in there and it is going
pearshaped. You need to set up a defineset for the defs.




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message