Intel fortran编译器+Visual Studio Express 2005 FortranMatlabCC++C# 

直接把答案贴上来好了:

就是说,express***带上 Windows SDK!!因为Intel Compiler基本上只是windows compiler toolchain的一个扩展件。

fatal error LNK1104: cannot open file uuid.lib

Last post 05-31-2006, 1:19 PM by Steve Lionel. 3 replies.
Sort Posts: Oldest to newest Newest to oldestPrevious Next
Intel fortran编译器+Visual Studio Express 2005
            
    
    
        FortranMatlabCC++C# 05-30-2006, 5:18 PM 118626

fatal error LNK1104: cannot open file uuid.lib

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.
Intel fortran编译器+Visual Studio Express 2005
            
    
    
        FortranMatlabCC++C# 05-30-2006, 5:37 PM 118627 in reply to 118626

Re: fatal error LNK1104: cannot open file uuid.lib

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 Files\Intel\Compiler\Fortran\9.1\IA32\Bin\ifort.cfg and add this line:

-Qoption,link,/nodefaultlib:uuid.lib
Steve

Doctor Fortran: intel.com/software/drfortran
Intel fortran编译器+Visual Studio Express 2005
            
    
    
        FortranMatlabCC++C# 05-31-2006, 9:11 AM 118639 in reply to 118627

Re: fatal error LNK1104: cannot open file uuid.lib

Exactly how/why does/would that solve his problem?
Intel fortran编译器+Visual Studio Express 2005
            
    
    
        FortranMatlabCC++C# 05-31-2006, 1:19 PM 118656 in reply to 118639

Re: fatal error LNK1104: cannot open file uuid.lib

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.
Steve

Doctor Fortran: intel.com/software/drfortran

猜你喜欢