FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

compiling/installing DDBI

 
Post new topic   Reply to topic     Forum Index -> DDBI
View previous topic :: View next topic  
Author Message
tyro



Joined: 04 Dec 2004
Posts: 13

PostPosted: Sun Apr 06, 2008 9:56 pm    Post subject: compiling/installing DDBI Reply with quote

I think I did everyting correctly?

compiled using command:
dmd -run buildme sqlite

compilation successfull, however attempting to compile test program:
dmd test.d -version=dbi_sqlite dbi.lib sqlite3.lib

results in the following errors:
C:\mars\dmd\bin\link.exe edit,,,dbi.lib+sqlite3.lib+user32+kernel32/noi+tango-us
er-dmd.lib;
OPTLINK (R) for Win32 Release 8.00.1
Copyright (C) Digital Mars 1989-2004 All rights reserved.
edit.obj(edit)
Error 42: Symbol Undefined _D3dbi6sqlite14SqliteDatabase14SqliteDatabase7__Clas
sZ
edit.obj(edit)
Error 42: Symbol Undefined _D3dbi6sqlite14SqliteDatabase14SqliteDatabase5_ctorM
FZC3dbi6sqlite14SqliteDatabase14SqliteDatabase
--- errorlevel 2

This made me question whether or not the sqlite code is getting compiled. I proceeded to remove the version(dbi_sqlite) for all the files in dbi/sqlite. Doing so revealed a whole slew of errors that I'm having a problems resolving. Some of those I have resolves remain questionable, such as:

char* errmsg = sqlite3_errmsg(db_);

db_ is not defined or used in any other module than SqliteDatabase and this is the only place it is used. Observing the surrounding code I decided to change it to "database" but I'm not sure if that is the right choice. Currently I'm stuck at line 351 in the above mentioned module: binder(i, p, x, len);

Seems dbi.Stetement.binder() was redesigned some time ago. Closest thing I can find is dbi.Statement.bind() but the calling conventions (read: parameters) have changed and I'm not sure how to advance.

There are also a bunch of "duplicate case 1 in switch statement" errors wherever there is a fallthrough in the code:

line 390:
case BindType.UByteArray:
case BindType.VoidArray:

I am using dmd v1.027+tango installed using DInstaller.

Any advice would be appreciated.
Andrew
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDBI All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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