FIX: L2029 Error Calling ODBC Functions from ODBC SDKLast reviewed: September 16, 1997Article ID: Q108522 |
7.00 | 1.00
MS-DOS | WINDOWS
kbtool kbbuglist kbfixlist
The information in this article applies to:
SYMPTOMSWhen building an application using the ODBC Software Development Kit (SDK), linker error L2029 "unresolved external" may occur on calls made to ODBC functions.
CAUSESeveral header files included with the ODBC SDK are missing extern "C" statements, which are needed to make them compatible with a C++ compiler. The functions residing in the ODBC libraries do not have decorated names, and therefore the extern "C" statement is necessary if you are calling the functions from an application written in C++. The following header files are affected by this problem:
SQL.H SQLEXT.H ODBCINST.H ODBCVER.H RESOLUTIONThere are two ways to handle this problem:
STATUSMicrosoft has confirmed this to be a problem in the products listed at the beginning of this article. The problem was corrected in Visual C++ for Windows version 1.5 by including new versions of the four header files listed above.
|
Additional reference words: 1.00 1.50 7.00 8.00 8.00c
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |