how to write task

  • joe pribele

    joe pribele - 2004-09-09

    this is the command i am running
    g++ *.cpp -lxerces-c -lglu32 -lglut32 -lopengl32 -ofiremonkey -ggdb

    what should my task look like ?

    • Curt Arnold

      Curt Arnold - 2004-09-09

      <cc compiler="g++" outfile="filemonkey" outtype="executable" debug="true">
          <fileset dir="${src.dir}" includes="*.cpp""/>
         <libset libs="xerces-c glu32 opengl32"/>

      Which should do -g instead of -ggbd.  If you really need to do -ggdb, then

      <cc compiler="g++" outfile="filemonkey" outtype="executable">
          <fileset dir="${src.dir}" includes="*.cpp""/>
         <libset libs="xerces-c glu32 opengl32"/>
        <compilerarg value="-ggdb"/>

    • joe pribele

      joe pribele - 2004-09-14

      now I am getting "could not create task of type: cc"

      reading the docs I am confused as to which is the right way to declare the task. It seems to change depending on where you look. The website is different than what you download.

      this is what i have.

      <taskdef resource="net/sf/antcontrib/antlib.xml" />
      <taskdef resource="cpptasks.tasks"/>
      <typedef resource="cpptasks.types"/>

      and the contrib jar is in anthome/lib


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks