ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jennifer Moter" <jmo...@sega.com>
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.
http://sourceforge.net/projects/ant-contrib/

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" />
     </condition>
     <cc debug="true" link="shared" outfile="${lib.dir}" >
          <compiler name="gcc" if="isSolaris">
              <compilerarg value="__UNIX__"/>
              <compilerarg value="NO_WCHAR"/>
              <compilerarg value="DEBUG"/>
          </compiler>
          <fileset dir="${libroot}"  includes="**/*.cpp" />
          <includepath location="${libroot}/**/*.h" />
          <sysincludepath location="${libinc}/" />
      </cc>
   </target>

verbose output:

makelib:
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]
       [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

BUILD FAILED
/home/jmoter/source/swan/src/build3.xml:53: gcc failed with return code 1
        at
org.apache.tools.ant.taskdefs.Execute.runCommand(Execute.java:539)
      at
net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler.compile(CommandLine
CCompiler.java:113)
        at net.sf.antcontrib.cpptasks.CCTask.compile(CCTask.java:382)
        at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:233)
        at org.apache.tools.ant.Task.perform(Task.java:317)
  -----Original Message-----
  From: Martin Gainty [mailto:mgainty@hotmail.com]
  Sent: Tuesday, July 09, 2002 4:01 PM
  To: ant-user@jakarta.apache.org
  Cc: judy.pearson@conducivetech.com
  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
interference.

               _______________________________________________



  >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 nagoya.betaversion.org ([192.18.49.131]) by
mc1-f19.law16.hotmail.com 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 ant-user-help@jakarta.apache.org; run by ezmlm
  >Precedence: bulk
  >List-Unsubscribe:
  >List-Subscribe:
  >List-Help:
  >List-Post:
  >List-Id: "Ant Users List"
  >Delivered-To: mailing list ant-user@jakarta.apache.org
  >X-Antivirus: nagoya (v4198 created Apr 24 2002)
  >Message-ID: <005401c22772$d62f6320$2a1f6bc6@judy.sight-n-sound.com>
  >X-Priority: 3 (Normal)
  >X-MSMail-Priority: Normal
  >X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
  >In-Reply-To:
  >Importance: Normal
  >X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
  >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
  >Return-Path: ant-user-return-22618-mgainty=hotmail.com@jakarta.apache.org
  >X-OriginalArrivalTime: 09 Jul 2002 18:02:09.0488 (UTC)
FILETIME=[BE74DD00:01C22772]
  >
  >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:
  > >
ant-user-return-22617-judy.pearson=conducivetech.com@jakarta.apache.org
  > >
[mailto:ant-user-return-22617-judy.pearson=conducivetech.com@jakarta.apa
  > > che.org]On Behalf Of Jennifer Moter
  > > Sent: Tuesday, July 09, 2002 10:47 AM
  > > To: ant-user@jakarta.apache.org
  > > 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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message