You are currently offline, waiting for your internet to reconnect

FIX: Odbccp32.lib Requires Msvcrt.lib to Compiler

This article was previously published under Q168251
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
BUG #: 4637 (odbc3)
SYMPTOMS
An ODBC application may get the following link errors when linking withOdbccp32.lib;
odbccp32.lib(dllload.obj) : error LNK2001:
unresolved external symbol __imp__rename
odbccp32.lib(dllload.obj) : error LNK2001:
unresolved external symbol __imp___stat
CAUSE
Odbccp32.lib is not a pure import library. It contains some object codethat has unsatisfied externals: rename and state. The rename and statefunctions are defined in Msvcrt.lib.
WORKAROUND
To work around this problem, make sure an ODBC application links Msvcrt.libbefore Odbccp32.lib.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Open DatabaseConnectivity version 3.0. This problem has been corrected in U.S. ServicePack 1 for Microsoft Open Database Connectivity, version 3.0. For moreinformation, contact your primary support provider.
link c compiler
Properties

Article ID: 168251 - Last Review: 08/28/1999 09:15:00 - Revision: 1.0

  • Microsoft Open Database Connectivity 3.0
  • kbbug kbfix kbprogramming KB168251
Feedback