PRB: Building SDK SNMP Samples Results in Unresolved ExternalsLast reviewed: June 16, 1997Article ID: Q129240 |
The information in this article applies to:
SYMPTOMSBuilding the SNMP samples in the Win32 SDK for Windows NT version 3.5 (TESTDLL.DLL or SNMPUTIL.EXE) using Visual C++ version 2.0 results in the the linker complaining of unresolved externals _mb_cur_max_dll and _pctype_dll.
CAUSEThe application was built to use the C run-time in a DLL. In the Win32 SDK, the import library is CRTDLL.LIB, and in Visual C++, the import library is MSVCRT.LIB. The "___mb_cur_max_dll" and "__pctype_dll" symbols are defined in the CRTDLL.LIB file, but not in the MSVCRT.LIB file.
RESOLUTIONChoose Settings from the Project menu. Then select C/C++, and go to the Code Generation category. For the run-time library listed, use Multithreaded using DLL. |
Keywords : kberrmsg kbnetwork NtwkSnmp kberrmsg kbnetwork kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |