Solved

Linking Error Using VC++ 5.0

Posted on 1998-10-21
4
204 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

744 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

10 Experts available now in Live!

Get 1:1 Help Now