- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
If, from the command line, I type:
ifort
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
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
Any ideas what I am doing wrong? I have installed VS 2005 SP1 and the SP1 update for Vista.
Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
I suggest that you contact NAG for more advice.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page