CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   MS Visual Studio (https://www.cfd-online.com/Forums/main/10834-ms-visual-studio.html)

ajay kumar February 20, 2006 17:15

MS Visual Studio
 
Greetings,

I have a mixed language project which I am trying to build using NMAKE. I opened the MS Visual Studio and exported the make file. I am using Compaq Digital Fortran ver and the OS is Windows XP Professional.

Whenever I build the project using Visual Studio everything links with no problem, however when I try to use NMake with the exported make file I get the following error.

LINK : fatal error LNK1104: cannot open file "dfor.lib" NMAKE : fatal error U1077: 'link.exe' : return code '0x450'

Does anyone know how to fix this?

All help is appreciated!

Thanks,

AK


Chris February 20, 2006 21:28

Re: MS Visual Studio
 
Build your project with visual studio and study the output window or build log file. Look for either a /LIBPATH argument to the link command or a set LIB=xxx command in the build log. Then add that to your nmake file or LIB environment variable.

The dfor.lib file is probably in a subdirectory of the fortran installation directory - you could just look for it and add that directory to the makefile (/LIBPATH:xxx option on the link line).



All times are GMT -4. The time now is 15:26.