Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26755 Discussions

LINK : fatal error LNK1181: cannot open input file 'user32.lib'

Ali_M_
Beginner
517 Views

Hi,

I have installed "Microsoft Visual Studio 2010 Professional" and "Intel Fortran Composer XE 2011 Update 6 SP1" on a new machine, but while compiling a new file I am getting this error: "LINK : fatal error LNK1181: cannot open input file 'user32.lib'".

Not sure what is wrong. I checked VS2010, Tools > Options > Intel Visual Fortran > Compilers > under Libraries for Win32 and x64 and I have these:

Wind 32:

$(IFortInstallDir)compiler\lib\ia32
$(IFortInstallDir)mkl\lib\ia32
$(VCInstallDir)atlmfc\lib
$(VCInstallDir)lib
$(WindowsSdkDir)lib
$(FrameworkSDKDir)lib

X64:

$(IFortInstallDir)compiler\lib\Intel64
$(IFortInstallDir)mkl\lib\Intel64
$(VCInstallDir)atlmfc\lib\amd64
$(VCInstallDir)lib\amd64
$(WindowsSdkDir)lib\x64

 

As you can see I have "$(WindowsSdkDir)lib\" under both libraries. If I do a "set WindowsSdkDir" in a command prompt, I will get this: 

"WindowsSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\"

so if I go to "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib" or ""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib\x64", there is a file named: "User32.Lib". Not sure what is wrong....

0 Kudos
1 Reply
Yuan_C_Intel
Employee
517 Views

Hi, Ali

Have you tried whether you can compile the file in Command prompt? From your description the directory path looks correct, then do you have read access to the dll?

Thanks.

 

Reply