Click here to Skip to main content
15,868,016 members
Articles / Desktop Programming / MFC
Article

Adding Unicode libraries to Your system

Rate me:
Please Sign up or sign in to vote.
1.10/5 (22 votes)
31 Mar 20042 min read 80.4K   860   17   6
For those of us that get Link error "mfc42ud.lib" not found

Introduction

I have seen comments on this subject from people with the same problem I have had, "Link Error: can't find mfc42ud.lib".  I found this article in MSDN Library, it resolves this issue.


   MSDN Home >  MSDN Library >  Visual Tools and Languages >  Visual Studio 6.0 >  Visual C and C++ 6.0 >  
Unicode Topics
Home |  Overview |  How Do I |  Sample

On Windows NT platforms, MFC supports the Unicode standard for encoding wide characters. Unicode is not presently supported on Windows 95.

Note   The Unicode versions of the MFC libraries are not copied to your hard drive unless you select them during a Custom installation. They are not copied during other types of installation. If you attempt to build or run an MFC Unicode application without the MFC Unicode files, you may get errors.

To copy the files to your hard drive, rerun Setup, choose Custom installation, clear all other components except "Microsoft Foundation Class Libraries," click the Details button, and select both "Static Library for Unicode" and "Shared Library for Unicode." Or, click "Select All".

The Unicode versions of the MFC libraries are described below:

Static Link Libraries
Release Debug Description
UAFXCW.lib,
.pdb UAFXCWD.lib,
.pdb Unicode MFC static link library


Dynamic Link Libraries
Release Debug Description
MFC42U.lib,
.dbg, def, .dll, .map, .pdb, .prf MFC42UD.lib,
.def, .dll, .map, .pdb Unicode MFC import library
(see notes below for explanation of file extensions)
 MFCD42UD.lib,
.def, .dll, .map, .pdb Unicode MFC import library for database
 MFCN42UD.lib,
.def, .dll, .map, .pdb Unicode MFC import library for network (sockets)
 MFCO42UD.lib,
.def, .dll, .map, .pdb Unicode MFC DLL for Active technologies
MFCS42U.lib,
.pdb MFCS42UD.lib,
.pdb Unicode MFC import library containing code that must be statically linked in an application or DLL


File types:

Import library files have the extension (.lib).


Dynamic link library files have the extension (.dll).


Module definition (.def) files are text files that contain statements for defining an .exe or .dll.


Map (.map) files are text files that contain information that the linker uses when linking a program.


Library (.lib) files are used in conjunction with the DLL versions of MFC. These files contain code that must be statically linked in the application or DLL.


Program database (.pdb) files contain debugging and project state information.


Debug (.dbg) files contain information (COFF FPO, and CodeView) that the Visual C++ Debugger uses.
For detailed information on naming conventions, see Naming Conventions for MFC DLLs and Library Naming Conventions.

For information on using Unicode with MFC, see International Programming Topics and Strings: Unicode and Multibyte Character Set (MBCS) Support.
 

Manage Your Profile |Legal |Contact Us |MSDN Flash Newsletter
©2004 Microsoft Corporation. All rights reserved. Terms of Use |Privacy Statement 
 

 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralOh Dear! Pin
Colin Angus Mackay18-Apr-04 11:36
Colin Angus Mackay18-Apr-04 11:36 
GeneralRe: Oh Dear! Pin
Michael Dunn18-Apr-04 12:07
sitebuilderMichael Dunn18-Apr-04 12:07 
GeneralRe: Oh Dear! Pin
aimsoft28-Aug-05 1:17
aimsoft28-Aug-05 1:17 
GeneralPlural Pin
Anonymous1-Apr-04 22:16
Anonymous1-Apr-04 22:16 
GeneralRe: Plural Pin
Roger652-Apr-04 0:29
Roger652-Apr-04 0:29 
GeneralRe: Plural Pin
Jörgen Sigvardsson3-Apr-04 3:32
Jörgen Sigvardsson3-Apr-04 3:32 
Anonymous wrote:
statical

static

:P

--
Din mamma.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.