CC task cannot refer to compiler

Help
2003-04-02
2003-04-02
  • I cannot refer to a previously defined compiler from my cc task. I get following message:
    build.xml:32: CC doesn't denote a ProcessorDef

    <compiler id="gcc" name="gcc">
      <compilerarg value="-O2"/>
    </compiler>
    .
    .
    <cc bla bla >
      <compiler refid="gcc"/>
    </cc>

    This is used in the xerces.ant example.