On Wednesday, 3 January 2018 at 21:12:54 UTC, wakhshti wrote:
On Wednesday, 3 January 2018 at 16:38:27 UTC, Craig Dillabaugh
wrote:
On Wednesday, 3 January 2018 at 12:14:19 UTC, wakhshti wrote:
clip
this is main.d content:
import std.stdio;
import sqlite;
void main(string[] args){
auto db = new SQLite3("datafile.db");
}
when i run :
dmd main.d
i get this error:
D:\ashit\document\DlangIDE\database\db>dmd main.d
OPTLINK (R) for Win32 Release 8.00.17
Copyright (C) Digital Mars 1989-2013 All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
main.obj(main)
Error 42: Symbol Undefined _D6sqlite7SQLite36__ctorMFAyaZCQBdQz
main.obj(main)
Error 42: Symbol Undefined _D6sqlite7SQLite37__ClassZ
Error: linker exited with status 2
what to do ?
i also downloaded new dmd but nothing seems going well.
Looks like you are up and running with Adam's stuff, but if you
wanted to use the sqlite3 library I would suggest you use 'dub'
to do the build as sqlite3 is in code.dlang.org. An example form
my own project:
dub.sdl
---------------------------------------------------------
name "blah"
description "An application that uses sqlite3 library.."
authors "Craig Dillabaugh"
copyright "Copyright © 2017, Craig Dillabaugh"
license "Whatever"
dependency "sqlite3" version="~>1.0.0"