Solved

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

Posted on 2006-10-21
4
4,615 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
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility

Thanks again.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now