- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using VS 2010 with visual fortran compiler XE 12.0.2.154 on windows 7 64 bit system.
I have an error after sucessful compilation. "LINK : fatal error LNK1104: cannot open file 'user32.lib'"/
It is just a simple Quick Win application for a test.
Is there any suggestion?
Thx,
Link Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Were you able to build similar programs on earlier occasions with the same compiler installation?
Do you have Visual C or a Windows SDK installed? Does the IDE know (usually through project settings) where to look for user32.lib?
Do you have Visual C or a Windows SDK installed? Does the IDE know (usually through project settings) where to look for user32.lib?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In VS2010, select Tools > Options > Intel Visual Fortran > Compilers. Under Platform, select Win32 if you are building 32-bit apps or x64 for 64-bit apps. Click the Reset All button, then Ok. Does this solve the problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes. I have installed V C and not sure Windows SDK. There is no problem on Visual C.
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have followed the procedure, but it didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you have a folder C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib (remove the "(x86)" if on a 32-bit system) with a user32.lib in it? This folder should also contain an x64 subfolder.
Go back into Tools > Options > Intel Visual Fortran > Compilers. Click on the ... button next to Libraries. Copy the contents and paste into a reply here. Now change Platform to x64 and do the same thing.
Go back into Tools > Options > Intel Visual Fortran > Compilers. Click on the ... button next to Libraries. Copy the contents and paste into a reply here. Now change Platform to x64 and do the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your suggestion works for me.
Thx,
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adding that path to the "Library files" list works? Make sure that if you are doing 64-bit development that you update the x64 list and use the x64 subfolder.

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