Solved

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

Posted on 2006-10-21
4
4,730 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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