Hi,

It appears that if you change the name of an object file from "filename.obj" to something else in a Visual Studio 2003 project, NAnt cannot find that .obj file at link time. The build fails as a result.

For example, if you have a file "foo.cpp", and you right-click on foo.cpp in the project, click C/C++, click Output Files, and change the "Object File Name" property to, say, $(IntDir)/$(InputName)1.obj (which in this example would be foo1.obj), NAnt is still incorrectly looking for foo.obj. It will generate the following error:

[lib] LIB : fatal error LNK1181: cannot open input file 'c:\test\mysolution\myproject\Debug\foo.obj'

'c:\test\mysolution\myproject\Debug\foo.obj' does not exist, but 'c:\test\mysolution\myproject\Debug\foo1.obj' does. VS figures it out; NAnt does not.

This is more than just an annoyance because Visual Studio does actually append "1" to the name of some obj files (maybe files that have been moved around in the project? not sure).

I have a small reproduction I would be happy to e-mail out if anyone is interested in taking a look.

Thanks,
John



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to