Hello,
I went to http://ant-contrib.sourceforge.net/cc.html to try to understand
how linking worked but I still cannot make it work at all...
Anyways,
here is my code

<project name="C build" basedir="."
xmlns:cpptasks="antlib:org.sf.net.antcontrib.cpptasks" 
xmlns:antcontrib="antlib:net.sf.antcontrib">

  <taskdef uri="antlib:net.sf.antcontrib"
          resource="net/sf/antcontrib/antcontrib.properties"
          classpath="${ant.home}/lib/ant-contrib-1.0b3.jar"/>
        <taskdef resource="cpptasks.tasks"
                                         
classpath="${ant.home}/lib/cpptasks.jar"/> 
 <typedef resource="cpptasks.types"/> 
 <path id="cc.classpath"> 
    <pathelement location="lib/cpptasks.jar"/> 
  </path> 

  <target name="cmpdebug" depends="init" description="Compile the source " >
    <cc name="msvc" 
        objdir="${debug.dir}" 
        debug="1"   
        rebuild="1"
        warnings="severe" 
        optimize="none" 
        exceptions="true"> 
        <fileset dir="${src}" includes="*.c"/> 

        <compiler name="msrc"
                debug="1"
                rebuild="1"
                warnings="severe">
                <fileset dir="${debug.dir}" includes="*.rc"/>
        </compiler>

        <linker name="msvc"
                debug="1"
                rebuild="1">
                <fileset dir="${debug.dir}" includes="*.obj"/>
        </linker>

 </target>

It will compile and I will have an OBJ, but it won't link... and ANT does
not fail anywhere...
What am I doing wrong?

Thanks -- fabien
-- 
View this message in context: 
http://www.nabble.com/linking-with-CC-task-tf4878970.html#a13962292
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to