Hello,

I just try building the standard SQLite 3.3.8 shell using a really simple Xcode projet just having the files "shell.c", "sqlite3.h" and "libsqlite3.a".

The last two were obtained builing the sqlite sources as told by the readme:

        tar xf sqlite-3.3.8.tar
        mkdir build
        cd build/
        ../sqlite-3.3.8/configure
        make

From this, I extract the "libsqlite3.a" hidden in the ".libs" folder (why is it so hidden) and the "sqlite3.h" file...

If I build using "Development" mode, I got no problem (it is dynamic linking, so it should make a runtime error) but with "Deployment" mode, I got an error:

/usr/bin/ld: warning prebinding disabled because of undefined symbols
/usr/bin/ld: Undefined symbols:
_sqlite3_enable_load_extension
_sqlite3_load_extension
/Users/luc/Developments/Projects_BSD/SQLite_338/shellWithLib/build/ shellWithLib.build/Deployment/shellWithLib.build/Objects-normal/ppc/ shell.o reference to undefined _sqlite3_enable_load_extension /Users/luc/Developments/Projects_BSD/SQLite_338/shellWithLib/build/ shellWithLib.build/Deployment/shellWithLib.build/Objects-normal/ppc/ shell.o reference to undefined _sqlite3_load_extension
collect2: ld returned 1 exit status

Looking at the Makefile produced by "configure", it seems the file "loadext.c" is correctly added to the library... And I see nowhere that the symbol SQLITE_OMIT_LOAD_EXTENSION could be defined...

Regards,

Luc Demarche
..................................................................
Luc Demarche                   [EMAIL PROTECTED]
Mac OS Software Developer

Pyramide Ingenierie sprl       Tel:  +32 87 292120
188 rue de Liege               Fax:  +32 87 292129
B-4800 Verviers                Mail: [EMAIL PROTECTED]
..................................................................

Reply via email to