[ant-contrib - Help] RE: Problem: failed to create task or type cc
"SourceForge.net" <[email protected]> Thu, 25 Oct 2007 14:19:07 -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=4588537
By: sharadb
Thanks Micheal,
The cl executable was not in the path. Adding it to the path resolved that issue.
But now I am facing a linker issue. Ant idea?
C:\Ant>ant -verbose -noclasspath
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.2_16\jre
Detected OS: Windows XP
parsing buildfile C:\Ant\build.xml with URI = file:///C:/Ant/build.xml
Project base dir set to: C:\Ant
Build sequence for target(s) `hello' is [cpptasks, init, hello]
Complete build sequence is [cpptasks, init, hello, ]
cpptasks:
parsing buildfile
jar:file:/C:/Ant/lib/cpptasks.jar!/net/sf/antcontrib/cpptasks/
antlib.xml with URI =
jar:file:/C:/Ant/lib/cpptasks.jar!/net/sf/antcontrib/cppta
sks/antlib.xml
init:
hello:
[cc] Starting dependency analysis for 1 files.
[cc] Parsing hello.cpp
[cc] 1 files are up to date.
[cc] 0 files to be recompiled from dependency analysis.
[cc] 0 total files to be compiled.
[cc] Starting link
[cc] link /NOLOGO /SUBSYSTEM:WINDOWS /INCREMENTAL:NO /OUT:hello.exe
hello.obj
[cc] MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external
symbol_WinMain@16 referenced in function ___tmainCRTStartup
[cc] hello.exe : fatal error LNK1120: 1 unresolved externals
BUILD FAILED
C:\Ant\build.xml:19: link failed with return code 1120
at net.sf.antcontrib.cpptasks.compiler.CommandLineLinker.link(CommandLineLinker.
java:278)
at net.sf.antcontrib.cpptasks.compiler.CommandLineLinkerConfiguration.li
nk(CommandLineLinkerConfiguration.java:117)
at net.sf.antcontrib.cpptasks.CCTask.execute(CCTask.java:773)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 1 second
Thanks,
Sharad
______________________________________________________________________
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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/