Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Linking Error Using VC++ 5.0

Posted on 1998-10-21
4
Medium Priority
?
212 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 600 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

721 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