This article was previously published under Q168251
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 4637 (odbc3)
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
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.
To work around this problem, make sure an ODBC application links Msvcrt.libbefore Odbccp32.lib.
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.