Solved

visual studio 6.0 compiling error

Posted on 2007-04-02
8
585 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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

809 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