Hello Mauricio,

Tuesday, July 1, 2008, 3:43:16 PM, you wrote:

MC> Hi list.

MC> I'm currently making modifications to a project, and want to add SQLite3 to
MC> it.

MC> I'm using VS6, have the sqlite3.h and sqlite3.c in the same directory, and
MC> this is the code:

MC> #include "sqlite3.h"

MC> ....

MC> bool TestSQLite()
MC> {
MC>     sqlite3 *db;
MC>     int rc;
MC>     rc = sqlite3_open("test.sqlite",&db);
MC>     return true;
MC> }

MC> but when I build, get the following error
MC> --------------------Configuration: mfc01 - Win32 Release--------------------
MC> Compiling...
MC> mfc01Dlg.cpp
MC> Linking...
MC> mfc01Dlg.obj : error LNK2001: unresolved external symbol _sqlite3_open


MC> However, if I just compile, everything goes ok.

MC> Any help?
MC> _______________________________________________
MC> sqlite-users mailing list
MC> sqlite-users@sqlite.org
MC> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

You know, you actually have to build SQLite3.c and the linker has to
include it when you link right? It's not enough that they be in the
same folder.

This is pretty basic and I'm sorry if I dumbed it down too much. I'm
just not seeing where you linked it in, in the messages.


-- 
Best regards,
 Teg                            mailto:[EMAIL PROTECTED]

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to