Solved

visual studio 6.0 compiling error

Posted on 2007-04-02
8
595 Views
Last Modified: 2008-01-09
i have the following visual studio 6.0 compiling error, pls explain. thanks

Linking...
LINK : fatal error LNK1104: cannot open file "..\..\VC98\Lib\USER32.LIB"
Error executing link.exe.

AIDemo1.exe - 1 error(s), 0 warning(s)
0
Comment
Question by:suoju
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 53

Expert Comment

by:Infinity08
ID: 18836420
Make sure that the library is linked to correctly.

Check if it can be found in "..\..\VC98\Lib\USER32.LIB" (starting from your project directory).

Check the project settings for the linker options.
0
 
LVL 19

Expert Comment

by:mrwad99
ID: 18836427
Your program is trying to link to a library file that it cannot find at the specified location.  Search your machine for USER32.lib, and, when you find the folder that it is located in, add it to your project settings->linker->additional dependencies tab, displayed via tools->options.

HTH
0
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 18837195
cannot open file "..\..\VC98\Lib\USER32.LIB"

The sub folder VC98\Lib conatins a user32.lib.

You need to specify the 'absolute' path of VC98\Lib, e. g. C:\Program Files\MS VisualStudio\VC98\lib, in Tools - Options - Directories - Library Directories.

Normally these are filled with installation of VC6. I assume you moved your installation to a different folder and didn't change the settings acordingly. If so, better reinstall cause there are a lot of other folders too that you need to specify differently.

Regards, Alex
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 18837227
>>>> add it to your project settings->linker->additional dependencies

The 'additional dependencies' are for third party libraries or own libraries only. The include, exe, source and library paths that came with VC6 installation should be defined in Tools - Options - Directories so that they are valid for all projects.
0
 

Author Comment

by:suoju
ID: 18841765
unfortunately, none of your advice works.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 18841812
>> unfortunately, none of your advice works.

Where is the USER32.LIB library on your file system ?
What are the project linker settings for your project ?
Where is your project located in the file system ?
Do you have the same problem with all projects, or just with this one ?
0
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 50 total points
ID: 18842032
>>>> unfortunately, none of your advice works

So many questions asked and such a poor feedback ...

Again:
does the file user32.lib exist?
if no  reinstall VC6
if yes
     does it exist in the vc98\lib folder?
     if no copy it to that folder (or reinstall VC6)
     if yes
          starting from the folder where your project.dsp is located
          go up to parent folder, go up to parent folder
          does the folder VC98\lib exist and is it the one that contains user32.lib ?
          if no add the absolute path of the vc98\lib path to
               Tools -Option - Directories - Library Paths
               check if path already exists
                      if yes user32.lib most likely is corrupt. Reinstall VC6.
                      if no add it and rebuild all.
          if yes user32.lib most likely is corrupt. Reinstall VC6.
0
 

Author Comment

by:suoju
ID: 18873947
after i delete the error lib file from my project, it can run without error.

thanks any way.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

627 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