On Thursday, 8 May 2014 at 11:48:14 UTC, Jack wrote:
On Thursday, 8 May 2014 at 11:07:06 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me like some forums.

Now to the questions: I'm searching for a quick and easy way to
integrate SQLite3 in my application.

maybe:
https://github.com/buggins/ddbc/wiki ?

I seem to have a problem with that library. Even if the modules have been imported and the libraries linked and yada yada, it spews error upon error. Sample code is this:

import std.stdio;
import ddbc.drivers.sqliteddbc;

void main(){

SQLITEDriver driver = new SQLITEDriver();
writeln("SUCCESS");
}


Error spewed out is this:
hello.d|7|Error: undefined identifier SQLITEDriver|

I think Code::Blocks is importing the modules but not detecting the modules. Been at it for a few hours now. Any help?

Did you specify the configuration to use to dub?
dub -c SQLite

Yes. I've also linked the library to it.
Dub:
http://puu.sh/8DYrR.png
Code::Blocks Configuration:
http://puu.sh/8DYug.png

Ah ok. CodeBlocks does not integrate with dub.
Take a look in the dub.json file of ddbc and collect the 'versions' for the SQLite configuration (USE_SQLITE)
Add those 'versions' to the DMD commandline n codeblocks:
dmd.exe .... -version=USE_SQLITE -version=...

Reply via email to