View previous topic :: View next topic |
Author |
Message |
Speedbrusher
Joined: 21 Feb 2007 Posts: 8 Location: Copenhagen, Denmark
|
Posted: Sat Nov 29, 2008 6:27 am Post subject: getting undefined sqlite references when using ddbi |
|
|
Hi guys, i'm trying to compile DDBI using 0.2.9 from the svn.
Since buildme.d wasn't tango 0.99.8 compatible, I decided to use dsss to build it, instead:
D:\d\DDBI\0.2.9>dsss build dbi
Creating imports for dbi
dbi => dbi
+ C:\D\dsss\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -IC:\D\dsss\include\d -SC:\D\dsss\lib\ -IC:\D\dsss\include\d -SC:\
D\dsss\lib -oqdsss_objs\D -O -release -version=dbi_sqlite -explicit -lib dbi\all.d dbi\Database.d dbi\DBIException.d d
bi\ErrorCode.d dbi\ib\all.d dbi\ib\IbDatabase.d dbi\ib\IbResult.d dbi\ib\imp.d dbi\Metadata.d dbi\msql\all.d dbi\msql\im
p.d dbi\msql\MsqlDatabase.d dbi\msql\MsqlResult.d dbi\mssql\all.d dbi\mssql\imp.d dbi\mssql\MssqlDatabase.d dbi\mssql\Ms
sqlDate.d dbi\mssql\MssqlResult.d dbi\mysql\all.d dbi\mysql\imp.d dbi\mysql\imp_win.d dbi\mysql\MysqlDatabase.d dbi\mysq
l\MysqlError.d dbi\mysql\MysqlPreparedStatement.d dbi\mysql\MysqlResult.d dbi\odbc\all.d dbi\odbc\OdbcDatabase.d dbi\odb
c\OdbcResult.d dbi\oracle\all.d dbi\oracle\imp\nzerror.d dbi\oracle\imp\nzt.d dbi\oracle\imp\oci.d dbi\oracle\imp\oci1.d
dbi\oracle\imp\oci8dp.d dbi\oracle\imp\ociap.d dbi\oracle\imp\ociapr.d dbi\oracle\imp\ocidef.d dbi\oracle\imp\ocidem.d
dbi\oracle\imp\ocidfn.d dbi\oracle\imp\ociextp.d dbi\oracle\imp\ocikpr.d dbi\oracle\imp\ocixmldb.d dbi\oracle\imp\odci.d
dbi\oracle\imp\oratypes.d dbi\oracle\imp\ori.d dbi\oracle\imp\orid.d dbi\oracle\imp\orl.d dbi\oracle\imp\oro.d dbi\orac
le\imp\ort.d dbi\oracle\imp\xa.d dbi\oracle\OracleDatabase.d dbi\oracle\OracleResult.d dbi\pg\all.d dbi\pg\imp.d dbi\pg\
PgDatabase.d dbi\pg\PgError.d dbi\pg\PgResult.d dbi\PreparedStatement.d dbi\Registry.d dbi\Result.d dbi\Row.d dbi\SqlGen
.d dbi\sqlite\all.d dbi\sqlite\imp.d dbi\sqlite\SqliteDatabase.d dbi\sqlite\SqliteError.d dbi\sqlite\SqliteResult.d dbi\
Statement.d -ofdbi.lib
Digital Mars Librarian Version 8.02n
Copyright (C) Digital Mars 2000-2007 All Rights Reserved
http://www.digitalmars.com/ctg/lib.html
Digital Mars Librarian complete.
dbi.lib
D:\d\DDBI\0.2.9>dsss install
Installing testddbi
+ copying testddbi.exe
Installing dbi
+ copying dbi.lib
+ copying all.di
+ copying Database.di
+ copying DBIException.di
+ copying ErrorCode.di
+ copying all.di
+ copying IbDatabase.di
+ copying IbResult.di
+ copying imp.di
+ copying Metadata.di
+ copying all.di
+ copying imp.di
+ copying MsqlDatabase.di
+ copying MsqlResult.di
+ copying all.di
+ copying imp.di
+ copying MssqlDatabase.di
+ copying MssqlDate.di
+ copying MssqlResult.di
+ copying all.di
+ copying imp.di
+ copying imp_win.di
+ copying MysqlDatabase.di
+ copying MysqlError.di
+ copying MysqlPreparedStatement.di
+ copying MysqlResult.di
+ copying all.di
+ copying OdbcDatabase.di
+ copying OdbcResult.di
+ copying all.di
+ copying nzerror.di
+ copying nzt.di
+ copying oci.di
+ copying oci1.di
+ copying oci8dp.di
+ copying ociap.di
+ copying ociapr.di
+ copying ocidef.di
+ copying ocidem.di
+ copying ocidfn.di
+ copying ociextp.di
+ copying ocikpr.di
+ copying ocixmldb.di
+ copying odci.di
+ copying oratypes.di
+ copying ori.di
+ copying orid.di
+ copying orl.di
+ copying oro.di
+ copying ort.di
+ copying xa.di
+ copying OracleDatabase.di
+ copying OracleResult.di
+ copying all.di
+ copying imp.di
+ copying PgDatabase.di
+ copying PgError.di
+ copying PgResult.di
+ copying PreparedStatement.di
+ copying Registry.di
+ copying Result.di
+ copying Row.di
+ copying SqlGen.di
+ copying all.di
+ copying imp.di
+ copying SqliteDatabase.di
+ copying SqliteError.di
+ copying SqliteResult.di
+ copying Statement.di
D:\d\DDBI\0.2.9>
D:\d\Frederik\dbtest>dsss build dbtest.d
dbtest.d => dbtest
+ C:\D\dsss\bin\rebuild.exe -Idsss_imports\ -I. -S.\ -IC:\D\dsss\include\d -SC:\D\dsss\lib\ -IC:\D\dsss\include\d -SC:\
D\dsss\lib -oqdsss_objs\D -O -release -version=dbi_sqlite dbtest.d -ofdbtest
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_open
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_close
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_errmsg
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_exec
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_prepare
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_errcode
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_last_insert_rowid
C:\D\dsss\lib\\dbi.lib(SqliteDatabase)
Error 42: Symbol Undefined _sqlite3_changes
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_step
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_column_count
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_column_name
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_column_text
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_column_decltype
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_column_type
C:\D\dsss\lib\\dbi.lib(SqliteResult)
Error 42: Symbol Undefined _sqlite3_finalize
--- errorlevel 15
Command C:\D\dsss\bin\rebuild.exe returned with code -1, aborting.
Error: Command failed, aborting.
D:\d\Frederik\dbtest>
Clearly it isnt working, but i'm not sure what went wrong. Any suggestions? ![Smile](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Sun Nov 30, 2008 2:41 am Post subject: |
|
|
the sqlite library isn't linked in - afaik, that would normally mean (on Windows at least), that sqlite3.lib isn't in your lib path. If that doesn't help, try adding it to your build line explicitly.
When that is said, unfortunately none of the developers of these tags (0.2.9 <= ) and branches (0.3-dev) are very involved anymore, so I won't be able to help you very much with them. Work in trunk is well on its way though. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Speedbrusher
Joined: 21 Feb 2007 Posts: 8 Location: Copenhagen, Denmark
|
Posted: Sun Nov 30, 2008 7:57 am Post subject: |
|
|
I've got sqlite3.lib in dmd\lib\ and dsss\lib\, so i guess i'll have to try adding it explicitly. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|