Solved

visual studio 6.0 compiling error

Posted on 2007-04-02
8
581 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
>>>> 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:suoju
Comment Utility
unfortunately, none of your advice works.
0
 
LVL 53

Expert Comment

by:Infinity08
Comment Utility
>> 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
Comment Utility
>>>> 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
Comment Utility
after i delete the error lib file from my project, it can run without error.

thanks any way.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

763 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

7 Experts available now in Live!

Get 1:1 Help Now