I keep getting:
undefined reference to `sqlite3_open'
Errors. I have seen forum posts etc on this but none of the suggestions are
helping. I've tried including the sqlite3.c file in my compile but I get tons
of errors and it won't build. I've tried adding -lsqlite3 to my compile code,
then I get:
/usr/bin/ld: cannot find -lsqlite3
I am running Ubuntu, I've installed sqlite3 through apt-get and my compile code
looks like this:
g++ -Wall cmxmc.cpp -lsqlite3 -o cmxmc
Here is my app code:
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <sqlite3.h>
int main()
{
// create the database
sqlite3 *db;
int rc;
rc = sqlite3_open("cmx.db", &db);
}
What folders should I be looking in to verify that sqlite3 is where it needs to
be on my system?
Thanks!
_________________________________________________________________
Windows Liveā¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_allup_1a_explore_042009
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users