Solved

Linking Error Using VC++ 5.0

Posted on 1998-10-21
4
207 Views
Last Modified: 2008-02-26
I am trying to build a program but I keep getting the following error:

LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"
Error executing link.exe.

Does anyone know why I'm getting this error?
0
Comment
Question by:santama
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
arunm earned 150 total points
ID: 1175730
First of all do you require this library? If not remove form the list of libraries you use when linking? Secondly, do you have this library in your library path? If not include it. thirdly, have you deleted this library on you system? try "dir /s mfc42ud.lib" from the root directory of the drive vc++ is located on. does it show up?

0
 

Author Comment

by:santama
ID: 1175731
I do not have the library on the system, and I am not including it in the Linker. I have no idea why it is trying to link.
0
 
LVL 3

Expert Comment

by:arunm
ID: 1175732
Have you recently upgraded your version of VC++ from 4.2 to Version 5.0? I think this is the cause of your problem. Have you tried a "rebuild all", your incremental linker may be confused?
 
0
 

Author Comment

by:santama
ID: 1175733
I found out why it is asking for this library. It's because one of the header files that I'm using has UNICODE defined. I found out that the ud at the end of library name (mfc42ud.lib) stands for unicode-debug. Once I removed the define statement it linked.

Thanks.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.

770 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