vc++ using ODBC 3.51 driver

------=_NextPart_000_0010_01C5227B.EEC81920
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi list,

How do I link to the MySQL ODBC implementation of ODBC? I've got code =
like this:

<snip>
RETCODE rc =3D 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 [at] 4
DatabaseAdaptor.obj : error LNK2001: unresolved external symbol =
_SQLFreeConnect [at] 4
DatabaseAdaptor.obj : error LNK2001: unresolved external symbol =
_SQLDisconnect [at] 4
DatabaseAdaptor.obj : error LNK2001: unresolved external symbol =
_SQLFreeStmt [at] 8
DatabaseAdaptor.obj : error LNK2001: unresolved external symbol =
_SQLConnect [at] 28
DatabaseAdaptor.obj : error LNK2001: unresolved external symbol =
_SQLAllocConnect [at] 8
DatabaseAdaptor.obj : error LNK2001: unresolved external symbol =
_SQLAllocEnv [at] 4
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
------=_NextPart_000_0010_01C5227B.EEC81920--
Mike Gagnon [ Mo, 07 März 2005 00:40 ] [ ID #680495 ]
Datenbanken » gmane.comp.db.mysql.odbc » vc++ using ODBC 3.51 driver

Vorheriges Thema: MyODBC 3.51.10 mysteriously started failing
Nächstes Thema: BLOB SIZE