ant-user mailing list archives

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

----- Original Message -----
From: "Jennifer Moter" <>
To: "Ant Users List" <>
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'

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

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:   <>
For additional commands, e-mail: <>

View raw message