Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

VS 2005 and NAG libraries

JonShaw
Beginner
515 Views
I have Intel Visual Fortran 9.1 integrated into VS 2005. I am trying to use the NAG fl90 libraries, but am having problems with some of the example programs provided with the NAG documentation.

If, from the command line, I type:

ifort .f90 nagfl90_mkl.lib libguide.lib mkl_c.lib

the error message I get is:

LINK : fatal error LNK1104: cannot open file 'LIBC.lib'

The compiler release notes suggests that this is a problem with libc.lib and libcd.lib having been removed from VS 2005, but I can't get the suggested solution (which is to specify one of /libs:static /threads, /libs:dll and /MT) to work - they all give the same LNK1104 error message.

If instead I type:

ifort .f90 nagfl90_mkl.lib libguide.lib mkl_c.lib /link /nodefaultlib:libc

some of the example programs now work fine, but others give a different error message:

nagfl90_mkl.lib(askserver.obj) : error LNK2019: unresolved external symbol _errno referenced in function _p01zxs
.exe : fatal error LNK1120: 1 unresolved externals


Any ideas what I am doing wrong? I have installed VS 2005 SP1 and the SP1 update for Vista.

Thanks.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
515 Views
You're going to need a new version of NAG that is built for VS2005. Either that, or use the DLL form of the libraries. The workaround suggested works only if you are compiling all sources and not using libraries from some other supplier.

I suggest that you contact NAG for more advice.
0 Kudos
Reply