ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jason heddings" <ja...@heddings.com>
Subject compiler References in <cc> task
Date Sat, 13 May 2006 01:19:38 GMT
Hello-

I have the following build file and I'm not sure what I'm missing:

<project name="MyProj" default="build" basedir=".">
  <taskdef resource="cpptasks.tasks" classpath="./Tools/Ant/cpptasks.jar" />
  <typedef resource="cpptasks.types" classpath="./Tools/Ant/cpptasks.jar" />

  <compiler id="my-compiler" name="msvc">
    <defineset define="_DEBUG" />
  </compiler>

  <target name="build">
    <cc subsystem="console" outtype="executable" outfile="hello">
      <compiler refid="my-compiler" />
      <fileset dir="." includes="*.c" />
    </cc>
  </target>
</project>

When I try to run this, I get an error saying:
build.xml:12: my-compiler doesn't denote a ProcessorDef

This is my first attempt to factor out the compiler types, so thanks for
your patience :)

--jah



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


Mime
View raw message