buggins / ddbc

DDBC is DB Connector for D language (similar to JDBC)
78 stars 45 forks source link

How to set up environment to use ddbc ? #57

Closed ASHIT-AXAR closed 6 years ago

ASHIT-AXAR commented 6 years ago

hello how do you set environment to run ddbc ? i download 'ddbc-master' and copied whole ddbc folder in source into my project folder. and those 3 files in ddbc\libs\win32 to system32 (and into my project folder just for sure). and this:

// i use CodeBlocks IDE
module main;

import std.stdio;
import ddbc;

int main(string[] args)
{
    writefln("Hello World\n");
    return 0;
}

when i press compile, i get this error:

||=== Build: Debug in database (compiler: Digital Mars D Compiler) ===|
|| Symbol Undefined _D4ddbc12__ModuleInfoZ|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

im new to dlang, what did i do wrong?

ASHIT-AXAR commented 6 years ago

i didn't know what then problem was, but upgrading DMD to latest release, no errors anymore.