using sqlite3
Knud Soerensen
4tuu4k002 at sneakemail.com
Tue Jan 15 12:59:59 PST 2013
When using etc.c.sqlite3 i get the following errors.
usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0x98): undefined
reference to `sqlite3_open'
/usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0xa7): undefined
reference to `sqlite3_errmsg'
/usr/include/dmd/phobos/etc/c/sqlite3.d:(.text._Dmain+0xcc): undefined
reference to `sqlite3_close'
What am I doing wrong ?
My code look like this.
import etc.c.sqlite3;
void main()
{
sqlite3* db;
int code=sqlite3_open("file.db", &db);
if (SQLITE_OK != code)
{
printf("DB create error: %s\n", sqlite3_errmsg(db));
}
printf("DB open!\n");
sqlite3_close(db);
printf("DB closed.\n");
}
--
Join me on
Skype knudhs
Facebook http://www.facebook.com/profile.php?id=1198821880
Linkedin http://www.linkedin.com/pub/0/117/a54
Twitter http://twitter.com/knudsoerensen
bitcoin donations: 13ofyUKqFL43uRJHZtNozyMVP4qxKPsAR2
More information about the Digitalmars-d-learn
mailing list