Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ODBC32.dll in your application

Status
Not open for further replies.

Programm3r

Programmer
May 25, 2007
3
ZA
When I include the following header files,

#include <sql.h>
#include <sqlext.h>

I receive this error:

[C++ Error] sqltypes.h(123): E2146 Need an identifier to declare

WHY???

Please help!!!
 
Off course you need to include windows.h too.

But it will not work by the way.

It compiles but don't link

it says
[Linker Error] Unresolved External 'SQLSetEnvAttr' referenced from ...
[Linker Error] Unresolved External 'SQLDriverConnect' referenced from ...
[Linker Error] Unresolved External 'SQLAllocHandle' referenced from ...
[Linker Error] Unresolved External 'SQLExecDirect' referenced from ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top