Bugs item #1186723, was opened at 2005-04-20 14:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1186723&group_id=31650

Category: Tasks
Group: 0.85
Status: Open
Resolution: None
Priority: 5
Submitted By: ynonk (ynonk)
Assigned to: Nobody/Anonymous (nobody)
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);
}


----------------------------------------------------------------------

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

Reply via email to