救急,这是什么错误???
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLConnect@28
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLAllocConnect@8
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLAllocEnv@4
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLFreeEnv@4
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLFreeConnect@4
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLDisconnect@4
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLFreeStmt@8
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLFreeStmt@8
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLExecDirect@12
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLExecDirect@12
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLAllocStmt@8
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLAllocStmt@8
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLExecute@4
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLExecute@4
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLPrepare@12
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLPrepare@12
ODBCDatabase.obj : error LNK2001: unresolved external symbol _SQLError@32
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLFetch@4
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLSetStmtOption@12
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLDescribeCol@36
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLNumResultCols@8
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLExtendedFetch@20
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLSetPos@16
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLGetData@24
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLGetStmtOption@12
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLBindCol@24
ODBCRECORDSET.OBJ : error LNK2001: unresolved external symbol _SQLBindParameter@40
Debug/Book.exe : fatal error LNK1120: 22 unresolved externals
Error executing link.exe.
这又是什么错误???
有个try中的CATCH(CDBException,e)
给出了以下错误:
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2061: syntax error : identifier 'CDBException'
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2310: catch handlers must specify one type
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2065: 'e' : undeclared identifier
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2227: left of '->IsKindOf' must point to class/struct/union
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2653: 'CDBException' : is not a class or namespace name
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2065: 'classCDBException' : undeclared identifier
E:\VC学习\数据库\Book\BookDlg.cpp(237) : error C2440: '=' : cannot convert from 'int' to 'class CException *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\VC学习\数据库\Book\BookDlg.cpp(239) : error C2227: left of '->ReportError' must point to class/struct/union
E:\VC学习\数据库\Book\BookDlg.cpp(242) : error C2317: 'try' block starting on line '233' has no catch handlers
Error executing cl.exe.
拜托高手帮忙了(一个ODBC API程序例子),谢谢了