Hi

I had the same problem and I found a solution:

 

While you don’t need to include your static library “staticlib.lib” in the “Configuration Properties -> Linker -> Input -> Additional Dependencies” for VC++ to make the link nAnt needs it.

Just add your additional dependencies in the project settings and it will work.

 

I don’t know if this should be reported as a nAnt bug/enhancement for the <solution> task or not….

 

Gilles

 

Hi there,
 
I have a VC++ solution with two projects in it where one project is
dependent on a static lib generated by the other project.
When I compile, I get the following link error.
 
...
 
[link] Starting 'link (@"C:\DOCUME~1\yko\LOCALS~1\Temp\tmpB5D.tmp"
/INCREMENTAL:NO /OPT:REF /SUBSYSTEM:WINDOWS /MACHINE:X86 /OPT:ICF
/LTCG)' in 'D:\CCNET_WORKSPACE\PWX 2.1.0\src\Semi
Software\Project\Coho\GuiApp\CameraView'
[link] LINK : fatal error LNK1104: cannot open file 'APFX.lib'
     [call] External Program Failed: link (return code was 1104)
 
...
 
Can anyone tell me what could be the problem?
 
Thank you kindly.
 
Alvin

 



2005 - Maporama International - Outgoing mail scanned by BlackSpider 

Reply via email to