Solved

visual studio 6.0 compiling error

Posted on 2007-04-02
8
583 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Create string splitting user defined function in C++ 23 290
why "." vs "->" 23 119
is twain_32.dll cmpatible with windows 10 ? 10 125
trigs fail! I thought I knew how to do trignometry 3 55
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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

910 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now