Solved

Linking Error Using VC++ 5.0

Posted on 1998-10-21
4
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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…
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 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…

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