Bugs item #1186723, was opened at 2005-04-20 16:47
Message generated for change (Comment added) made by drieseng
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1186723&group_id=31650
Category: Tasks
Group: 0.85
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: ynonk (ynonk)
>Assigned to: Gert Driesen (drieseng)
Summary: empty cpp project (without cpp files) fails to link
Initial Comment:
consider a cpp project with out .cpp files in it (just run
post build step)
The linker command line of such a project doesn't
contain the any .obj file.
Visual Studio doesn't run the linker in that case.
NAnt does run the linker and link error is generated error
LNK2001: unresolved external symbol _mainCRTStartup
possible solution:
add the following lines to RunLinker function
if (_objFiles.Count == 0)
return;
prior to the existing lines:
foreach (string objFile in _objFiles) {
linkTask.Sources.FileNames.Add(objFile);
}
----------------------------------------------------------------------
>Comment By: Gert Driesen (drieseng)
Date: 2005-04-20 16:53
Message:
Logged In: YES
user_id=707851
This should be working fine in recent versions of NAnt.
Can you try using NAnt 0.85 RC3 or a recent nightly build
(http://nant.sourceforge.net/nightly/latest) ?
Please reopen this bug report and attach a repro, if you still
run into this issue on recent versions of NAnt.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1186723&group_id=31650
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers