ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fabien_pichard <fabien_pich...@hotmail.com>
Subject Re: linking with CC task
Date Thu, 29 Nov 2007 19:36:02 GMT

Hello Dominique,
Thank you for your answer.

Actually I found out why my stuff was not working... I guess working long
hours on the same thing gets me  blind and I did not see a simple thing:
I did not have the outtype=${debug.dir}\${exename} in the CC command.
So it never launched the linker... 

I have been using ant -verbose or -debug all the time... 
Anyways...
Here is the final ant task if anyone needs help on CC tasks compiler,
resource compiler and linker from microsoft.
     
- <cc name="msvc" 
                  objdir="${release.dir}" 
                  debug="0" 
                  rebuild="1" 
                  incremental="0" 
                  warnings="severe" 
                  failonerror="1" 
                  optimize="speed" 
                  exceptions="true" 
                  outfile="${release.dir}/${exename}" 
                  link="executable" 
                  outtype="executable" 
                  subsystem="console">
                    <fileset dir="${src}" includes="*.c" /> 
                  <compiler name="msrc" debug="0" rebuild="1"
warnings="severe">
                    <fileset dir="${release.dir}" includes="*.rc" /> 
                  </compiler>
                  <linker name="msvc" debug="0" incremental="0" rebuild="1">
                    <fileset dir="${release.dir}" includes="*.obj" /> 
                    </linker>
  </cc>

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


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


Mime
View raw message