?
Solved

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

Posted on 2006-10-21
4
Medium Priority
?
4,850 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

777 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