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

fatal error LNK1104: cannot open file uuid.lib

bubenik
Beginner
1,412 Views
I recently installed the Inter Fortran 9.1 30-day trial, and get the above error every time I try to use it. It occurs when attempting to compile and link simple existing standalone fortran programs from any command window. The only uuid.lib file on my system in in the Matlab folder.
0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,412 Views
I assume that you have Visual C++ 2005 Express Edition? There are two solutions to this:

1. Download and install the free Microsoft Platform SDK (see links in the Installation Guide) and reinstall ifort.
2. Edit (using Notepad) C:Program FilesIntelCompilerFortran9.1IA32Binifort.cfg and add this line:

-Qoption,link,/nodefaultlib:uuid.lib
0 Kudos
anthonyrichards
New Contributor III
1,412 Views
Exactly how/why does/would that solve his problem?
0 Kudos
Steven_L_Intel1
Employee
1,412 Views
Several of the static libraries used by Intel Fortran applications contain a directive to require the MS Platform SDK library uuid.lib. This library is not provided by Visual C++ 2005 Express Edition.

The reference comes from deep within a nested set of #include references in a C header file (the libraries are written in C.) As it happens, nothing from uuid.lib is actually used, so telling the linker to ignore it solves the problem.

The other solution is to install the free Platform SDK which has the library.

Some of the references to uuid.lib have been removed, but not all of them, so far.

Another solution would be to link against the DLL libraries.
0 Kudos
rdswindoll
Beginner
1,412 Views

I had same error. Adding"-Qoption,link,/nodefaultlib:uuid.lib " to the ifort.cfg file resolved error, but then I received the LNK1104 error for the 'ImageHlp.lib' file. If I use link option to ignore the ImageHlp.lib file, then several other errors occur: LNK2019.

Note that the 'ImageHlp.Lib' file is in two locations on my PC: C:Program FilesMicrosoft SDKsWindowsv6.0ALib and also in C:Program FilesMicrosoft SDKsWindowsv6.0ALib64.

I only installed Intel Fortran today and was just trying to compile and link a standalone existing program.

0 Kudos
Steven_L_Intel1
Employee
1,412 Views
The SDK you have is from VS2008 - did you install the compiler before or after VS2008? I suggest that you uninstall and reinstall the compiler (making sure it is at least 10.1.019.)
0 Kudos
Reply