LINK : fatal error LNK1104: cannot open file mfc42ud.lib  ?????

Posted on 2002-07-18
Last Modified: 2013-11-20
I downloaded the "chatsrvr" mfc aplication from the MSDN disks. When I tried to build the executeable I got the error:

LINK : fatal error LNK1104: cannot open file "mfc42ud.lib"

I have visual studio 6. Ive run service pack 5 and I still get this error. Help!! Why dont I have this library and where can I get it.


Question by:rangers99

Expert Comment

ID: 7163983
u in library name probably indicates that application trying to compile as UNICODE.  In default installation of VC++ unicode librararies not installed.  So you need to rerun setup and select unicode libraries to be installed.  Or you can try to compile this app as non-unocode.  

Take a look at project configurations - you see what I mean.

Hope it helps...

Expert Comment

ID: 7165078
You have to install the Unicode Debug library.
mfc42ud.lib (mfc = Microsoft Foudation Class, 42 = version 4.2, U = unicode, D = debug)


Accepted Solution

ackava earned 100 total points
ID: 7166546
Forget everything else, just open the project, click on menu Build, click on Set Active Configuration, and select Win32 Debug (non unicode version) , it will work.
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.


Author Comment

ID: 7169341
Ackava, I want to accept you answer but I dont know how to. I am only being offered an acceptance to  LucaMoreschi's answer.

Author Comment

ID: 7176122
cheers, works like a dream

Expert Comment

ID: 7176453
thanks rangers99

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand to include initial dialog with two choices. 9 78
has22 challenge 11 95
Modbus - whats the maximum I can store in one register? 4 80
Annoying "thing" blocks my view 4 100
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

810 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