Solved

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

Posted on 2006-10-21
4
4,697 Views
Last Modified: 2013-12-03

I am running XP home service pack 2.

Some time ago I did the following (see below), but didn't use the resulting system at the time (as I recall).

I installed the Mjolner BETA programming language system using the Microsoft SDK as described here:
http://www.daimi.au.dk/~beta/Manuals/r5.2.2/install/install-windows.html

Prior to that I installed the free Microsoft Visual C++ Toolkit 2003 as described here.
http://www.daimi.au.dk/~beta/mjolner_system/system_download.html

Now when I attempt to compile and link hello.bet (a "Hello World" program in BETA) which uses MS libs and linker, I get the following error:
LINK : fatal error LNK1181: cannot open input file 'user32.lib'

There is no file 'user32.lib' anywhere on my hard drive.

How should I fix this difficulty?

0
Comment
Question by:McVole
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 17783917
It seems that you forgot to install the Windows SDK. You can download that for free from http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en ("Windows® Server 2003 SP1 Platform SDK Web Install") which is the most recent version.
0
 

Author Comment

by:McVole
ID: 17784602

jkr: You hit the nail on the head! Thanks.
Now I have a minor problem --- some debug info is missing for one of the libs in my Microsoft Visual C++ Toolkit 2003 installation:
warning LNK:4099 PDB libc.pdb was not found ...
where the path that followed this error text was to the lib directory in the VC++ toolkit directory.

I could install VC++ 2005 express instead (which may have the necessary). Or is there a quicker way?

0
 
LVL 86

Expert Comment

by:jkr
ID: 17784623
That's not critical for debugging, but you can download the symbol packages from http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx
0
 

Author Comment

by:McVole
ID: 17784686

Thanks again.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question