[ant-contrib - Help] cc calls cl twice when used from msvc

"SourceForge.net" <[email protected]> Tue, 01 Apr 2008 00:30:52 -0700
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4876681
By: hymerman

Hi, I have a C++ project building with ant, and I've just set up a msvc makefile
project to start ant on a build. It's exactly the same as building from the
command line, except there are these extra lines generated:

1>Microsoft (R) Incremental Linker Version 8.00.50727.762
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>LINK : warning LNK4001: no object files specified; libraries used
1>LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
1>LINK : fatal error LNK1159: no output file specified
1>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for
80x86
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>cl : Command line warning D9002 : ignoring unknown option '/bogus'
1>cl : Command line error D8003 : missing source filename

It seems that CC calls cl and link an extra time before actually doing
any compilation or linking, and this is generating errors that get put in my
msvc task list, and I don't like errors! I've only got one <cc/> element in
build.xml, with no <compiler/> or <linker/> nested elements (same problem if
they are, though). Has anyone else experienced this? If so, how can you make
this stop?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=113701

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace