PRB: LNK4016: Unresolved External Symbol "__doserrno"Last reviewed: July 10, 1997Article ID: Q103714 |
1.00 2.00 2.10
WINDOWS NT
kbprg kbprb
The information in this article applies to:
SYMPTOMSBuilding a project with Visual C++ 1.0 generates the following unresolved link error for __doserrno:
LNK4016: unresolved external symbol "__doserrno"Under Visual C++ 2.0 and 2.1, the following error is generated:
LNK2001: unresolved external symbol "__doserrno"NOTE: This behavior does not occur in MFC 4.0 included with Visual C++ version 4.0 as MFC 4.0 supports multithreaded applications by default.
CAUSEThis error may be caused by compiling an application with /MT or /MD (multithreaded options) and linking with the default versions of the Microsoft Foundation Class (MFC) libraries. The default versions of the MFC libraries were not built with the multithreaded C run-time library, which results in the above error. The MFC Libraries do not support calling MFC code from any thread other than the primary thread. You can make calls to the MFC libraries or global AFX helper functions only from the primary thread.
RESOLUTIONThe README.WRI file (installed by default in the \MSVCNT\ directory) describes how to remedy this problem. There are two possible solutions:
|
Additional reference words: 1.00 2.00 2.10 LNK2001
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |