Microsoft KB Archive/129240

= PRB: Building SDK SNMP Samples Results in Unresolved Externals =

ID: Q129240

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK) for Windows NT version 3.5

SYMPTOMS
Building 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.

CAUSE
The 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.

RESOLUTION
Choose 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 kbAPI kbNTOS350 kbSDKPlatform kbSNMP kbGrpNet Issue type       : kbprb Last Reviewed: July 31, 1998