At 02:44 26/09/2011, Simon Slavin wrote:

On 26 Sep 2011, at 1:35am, JFC Morfin wrote:

> I have copied the C programe in http://sqlite.org/quickstart.html and tried to compile it.
> With BorlandC, TCC, and now MinGW.
> I obtain the unique same error: "undefined symbol (or reference): sqlite3_version".
>
> As I see in the sql code that "SQLITE_API const char sqlite3_version[] = SQLITE_VERSION;" is in line 693 and 110173 (ifndef SQLITE_AMALGAMATION which is defined in line 21)., I do not understand the problem. Suspecting it might be something related to the last version I looked in vain into the list archives of the last two months list.

Hi! Simon,
Thank you for helping.

Did you include the amalgamation source code in with your program ? I don't mean just put it in the right folder, but also tell your compiler that both the C code and the header are part of your project.


I think so: I entered

#include "c:\sqlite\sqlite3.h"
#include "c:\sqlite\sqlite3.c"

at the begining of the file.
jfc

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to