FIX: Odbccp32.lib Requires Msvcrt.lib to Compiler

Article translations Article translations
Article ID: 168251 - View products that this article applies to.
This article was previously published under Q168251
BUG #: 4637 (odbc3)
Expand all | Collapse all

SYMPTOMS

An ODBC application may get the following link errors when linking with Odbccp32.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 code that has unsatisfied externals: rename and state. The rename and state functions are defined in Msvcrt.lib.

WORKAROUND

To work around this problem, make sure an ODBC application links Msvcrt.lib before Odbccp32.lib.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Open Database Connectivity version 3.0. This problem has been corrected in U.S. Service Pack 1 for Microsoft Open Database Connectivity, version 3.0. For more information, contact your primary support provider.

Properties

Article ID: 168251 - Last Review: August 28, 1999 - Revision: 1.0
APPLIES TO
  • Microsoft Open Database Connectivity 3.0
Keywords: 
kbbug kbfix kbprogramming KB168251
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.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com