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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple VC++ App Getting error LNK2001: unresolved external symbol _SQL

Status
Not open for further replies.

metsey

Programmer
Mar 2, 2001
49
US
Greetings

I am trying to connect to a database and delete some records. I keep getting the following linking errors:

CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLFreeEnv@4
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLDisconnect@4
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLFetch@4
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLExecDirectA@12
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLPrepare@12
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLAllocStmt@8
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLDriverConnect@32
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLAllocConnect@8
CRS01_BlowoutDlg.obj : error LNK2001: unresolved external symbol _SQLAllocEnv@4
Debug/CRS01_Blowout.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.

I seem to be forgetting a library but I can't determine exactly what it is. Any help would be appreciated.
 
Try add to project: odbc32.lib (and may be odbccr32.lib).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top