ant-user mailing list archives

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

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" />

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

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 :)


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

View raw message