Database connection...

James Pelcis jpelcis at gmail.com
Mon Oct 30 15:41:55 PST 2006


Nahon wrote:
> #OPTLINK (R) for Win32  Release 7.50B1
> #Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
> #
> #dbi\odbc\OdbcDatabase.obj(OdbcDatabase)
> # Error 42: Symbol Undefined _SQLFreeHandle at 8
> #dbi\odbc\OdbcDatabase.obj(OdbcDatabase)
> # Error 42: Symbol Undefined _SQLEndTran at 12
> #dbi\odbc\OdbcDatabase.obj(OdbcDatabase)
> # Error 42: Symbol Undefined _SQLGetDiagField at 28
> #dbi\odbc\OdbcDatabase.obj(OdbcDatabase)
> # Error 42: Symbol Undefined _SQLGetDiagRec at 32
> #dbi\odbc\OdbcDatabase.obj(OdbcDatabase)
> # Error 42: Symbol Undefined _SQLSetEnvAttr at 16
> #dbi\odbc\OdbcDatabase.obj(OdbcDatabase)
> # Error 42: Symbol Undefined _SQLAllocHandle at 12
> #dbi\odbc\OdbcResult.obj(OdbcResult)
> # Error 42: Symbol Undefined _SQLColAttribute at 28
> 
> It seems everything is imported but it does not compile/link.

That's a known problem that is caused by DMC not being shipped with 
up-to-date Windows libraries.  To fix it, follow the instructions at 
http://www.dsource.org/projects/ddbi/wiki/ODBCSubproject.

Hope you enjoy.



More information about the Digitalmars-d mailing list