  | |  | vc++ using ODBC 3.51 driver | vc++ using ODBC 3.51 driver 2005-03-06 - By Mike Gagnon
Back Hi list,
How do I link to the MySQL ODBC implementation of ODBC? I've got code like this:
<snip> RETCODE rc = SQLConnect(m_hConnectionHandle, DSN, strDataSourceName.GetLength(), USERNAME, strUserName.GetLength(), PASSWORD, strPassword.GetLength());
that when compiled, produces this:
Linking... DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLFreeEnv@(protected) DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLFreeConnect @(protected) DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLDisconnect@(protected) DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLFreeStmt@(protected) DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLConnect@(protected) DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLAllocConnect@(protected) DatabaseAdaptor.obj : error LNK2001: unresolved external symbol _SQLAllocEnv@(protected) Debug/MBS.exe : fatal error LNK1120: 7 unresolved externals
i.e., which libraries am I supposed to include (dlls, libs)? Please help with the setup of my project.
Thanks, Mike
Earn $52 per hosting referral at Lunarpages.
|
|
 |