LINK : fatal error LNK1104: cannot open file 'user32.lib'.
Hello,
I've tried everything to get ANY program to work and they won't. Not even "Hello World" or code copied directly from help.
Always the same:
LINK : fatal error LNK1104: cannot open file 'user32.lib'.
I've read all the suggestions here, followed all the directions including from the websites:
1. Uninstall beta versions
Before installing, you must uninstall any previous versions of SQL Server 2005, Visual Studio 2005, and the .NET Framework 2.0 (this includes Tech Preview, Beta, or CTP versions).
2. Download and install Visual C++ 2005 Express Edition!!
3. Register
4. Install the Platform SDK
AND
Step 1: Install Visual C++ Express.
Step 2: Install the Microsoft Platform SDK...for the x86 platform.
Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
Add the paths to the appropriate subsection:
Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
In the help files that came with the software the instructions for this are thus:
Executable files: C:\Program Files\Microsoft SDK\Bin
Include files: C:\Program Files\Microsoft SDK\include
Library files: C:\Program Files\Microsoft SDK\lib
I’ve tried both with no luck.
Step 4: Update the corewin_express.vsprops file.
Edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and
Change the string that reads:
AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
Step 5: Generate and build a Win32 application to test your paths.
Edit the file AppSettings.htm file located in the folder “%ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\".
In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
This code didn't correspond to the lines mentioned but they were only grouped like this in one place. And I don't think this would impactthe libraries anyway.
I’m running XP SP2 with nearly a Gig of memory and a 2.8 Ghz Pentium processor. I’ve downloaded all the updates I could find to no avail. I have even uninstalled and reinstalled more than once.
I’ve done some programming in Fortran and I’m trying to teach myself C++ and it ain't been easy.
Ironically these programs ran on my C++ compiler that came with my Fortran package after a few tweaks.
Any help that hasn’t already been covered would be appreciated.
Tom

