negerns
Joined: 08 Jul 2006 Posts: 13
|
Posted: Mon May 07, 2007 7:29 am Post subject: using 0.2.5 with D 1.014 on winxp |
|
|
i get an error compiling the following program:
Code: |
import dbi.odbc.all;
void main() {
OdbcDatabase db = new OdbcDatabase();
db.connect("Scratch", "dba", "sql");
}
|
using the following command:
Code: |
C:\projects\ide>dmd odbc.d -debug -version=Phobos -L/SUBSYSTEM:windows:5 dbi.lib odbc32.lib
c:\dmd\bin\..\..\dm\bin\link.exe odbc,,,dbi.lib+odbc32.lib+user32+kernel32/noi/SUBSYSTEM:windows:5;
|
which produced the error:
Code: |
odbc.obj(odbc)
Error 42: Symbol Undefined _D3dbi4odbc12OdbcDatabase12OdbcDatabase7__ClassZ
odbc.obj(odbc)
Error 42: Symbol Undefined _D3dbi4odbc12OdbcDatabase12OdbcDatabase5_ctorMFZC3db
i4odbc12OdbcDatabase12OdbcDatabase
--- errorlevel 2
|
|
|