Hi!

I am using sqlite-3.3.5.tar.gz <http://www.sqlite.org/sqlite-3.3.5.tar.gz>

My problems is that i want to build a sqlite programs that use static library and custom directorystructure. The reason for this is that i will build to software for other platforms and for mantains would like to have
same structure.

i have compiled sqlite with
./configure

Make it with
make

and created a testfile (from quick tutorial) and called it db-test.c

i try to compile it with
gcc --static -I../sqlite -L../sqlite/.libs -o db-test db-test.c -lsqlite3

But i get errors like
Undefined                       first referenced
symbol                             in file
fdatasync                           ../sqlite/.libs/libsqlite3.a(os_unix.o)
ld: fatal: Symbol referencing errors. No output written to db-test
collect2: ld returned 1 exit status

I have tryed to add headers for fdatasync
I have tryed to redefine to fsync with -D flag

NOTHING WORKS

i am new to sqlite and i think maby i have missunderstand someting.

Reply via email to