ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jennifer Moter" <>
Subject FW: Can you compile C++ and C from ant
Date Wed, 10 Jul 2002 20:08:13 GMT
I found cpptasks 1.0a at source forge.

on solaris, I'm using gcc, but I'm having problems getting a good compile:

Does anyone see what happened?

  <target name="makelib" depends="cleanlib" description="compile c++ files
on solaris" >
     <condition property="isSolaris" >
        <os name="sunos" />
     <cc debug="true" link="shared" outfile="${lib.dir}" >
          <compiler name="gcc" if="isSolaris">
              <compilerarg value="__UNIX__"/>
              <compilerarg value="NO_WCHAR"/>
              <compilerarg value="DEBUG"/>
          <fileset dir="${libroot}"  includes="**/*.cpp" />
          <includepath location="${libroot}/**/*.h" />
          <sysincludepath location="${libinc}/" />

verbose output:

Override ignored for property isSolaris
       [cc] Compiling "athlib.cpp" because "athlib.o" does not exist.
       [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] The ' characters around the executable and arguments are
       [cc] not part of the command.
       [cc] gcc: cannot specify -o with -c or -S and multiple compilations

/home/jmoter/source/swan/src/build3.xml:53: gcc failed with return code 1
        at net.sf.antcontrib.cpptasks.CCTask.compile(
        at net.sf.antcontrib.cpptasks.CCTask.execute(
  -----Original Message-----
  From: Martin Gainty []
  Sent: Tuesday, July 09, 2002 4:01 PM
  Subject: RE: Can you compile C++ and C from ant

  Where is Ant on your browser???
  How does one add gcc (for cpp) task???

  Martin Gainty


  Disclaimer and confidentiality note

  Everything in this e-mail and any attachments relating to the official
business of Laconia Data Systems (LDS) is proprietary to the company. It is
confidential, legally privileged and protected by law. LDS does not own and
endorse any other content. Views and opinions are those of the sender unless
clearly stated as being that of LDS.

  The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender immediately if it has unintentionally reached you
and do not read, disclose or use the content in any way.

  LDS can not assure that the integrity of this communication has been
maintained nor that it is free of errors, virus, interception or


  >From: "Judy Pearson"
  >Reply-To: "Ant Users List"
  >To: "Ant Users List"
  >Subject: RE: Can you compile C++ and C from ant
  >Date: Tue, 9 Jul 2002 11:02:49 -0700
  >MIME-Version: 1.0
  >Received: from ([]) by with Microsoft SMTPSVC(5.0.2195.4905); Tue, 9 Jul
2002 11:02:07 -0700
  >Received: (qmail 27213 invoked by uid 97); 9 Jul 2002 18:03:02 -0000
  >Received: (qmail 27163 invoked by uid 98); 9 Jul 2002 18:03:01 -0000
  >Mailing-List: contact; run by ezmlm
  >Precedence: bulk
  >List-Id: "Ant Users List"
  >Delivered-To: mailing list
  >X-Antivirus: nagoya (v4198 created Apr 24 2002)
  >Message-ID: <005401c22772$d62f6320$>
  >X-Priority: 3 (Normal)
  >X-MSMail-Priority: Normal
  >X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
  >Importance: Normal
  >X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  >X-Spam-Rating: 1.6.2 0/1000/N
  >X-OriginalArrivalTime: 09 Jul 2002 18:02:09.0488 (UTC)
  >Look for
  >Build ant-contrib-cpptasks - C/C++ compilation tasks for Ant
  >on your browser
  >go to home from there and you'll find the download for it.
  >- Judy
  > > -----Original Message-----
  > > From:
  > >
  > >
  > >]On Behalf Of Jennifer Moter
  > > Sent: Tuesday, July 09, 2002 10:47 AM
  > > To:
  > > Subject: Can you compile C++ and C from ant
  > >
  > >
  > > I have a project of mixed java, C and C++ files.
  > >
  > > Is there a way of compiling the C and C++ files other than calling
  > > exec make?
  > >
  > > --
  > > To unsubscribe, e-mail:
  > > For additional commands, e-mail:
  > >
  >To unsubscribe, e-mail:
  >For additional commands, e-mail:

  MSN Photos is the easiest way to share and print your photos: Click Here

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message