SQLite Forum

Error while linking sqlite shared library with the Application
Login
Hi, 
  I have compiled SQLite3.31.3 with below options:

/vobs/JDF/CSIAtom/source/build/ccache /vobs/buildtools/linux-i386/icc-10.1/bin/icc    -DNDEBUG -O1   -DUNICODE -D_UNICODE  -DXML_USE_PTHREADS -D_REENTRANT -DGTK_NO_CHECK_CASTS -D__WXGTK__   -D_linux_ -D__LINUX__ -Qlocation,asm,/vobs/buildtools/linux-i386/gcc-4.1.2/i686-pc-linux-gnu/bin -Qlocation,ld,/vobs/buildtools/linux-i386/gcc-4.1.2/i686-pc-linux-gnu/bin -tpp7 -we277 -we147 -we117 -we592 -we1011 -we175  -DCPU=i386 -DLINUX=1 -D_REENTRANT -DOEM_TARGET_CPU=I80X86 -DSTRICT_ALIGNMENT -D_FILE_OFFSET_BITS=64 -isystem/vobs/buildtools/linux-i386/fiery_debian/usr/include -isystem/vobs/linuxdev/xdev/usr/include -cxxlib-gcc=/vobs/buildtools/linux-i386/gcc-4.1.2 -L/vobs/buildtools/linux-i386/icc-10.1/lib -L/vobs/linuxdev/xdev/usr/lib -L/vobs/linuxdev/xdev/lib -Wl,-rpath-link,/vobs/linuxdev/xdev/lib -Wl,-rpath-link,/vobs/linuxdev/xdev/usr/lib -Wl,-rpath-link,/vobs/linuxdev/xdev/usr/X11R6/lib -DSEND_TRACE_TO_SYSLOG -fp -Wl,--allow-multiple-definition -Wl,-Bsymbolic -Wl,--warn-once  -DPIC -DCOMPILER_GNU -w -I"../../../../ExternalLibs/Sqlite_3_31_1/include/external" -I"../../../../ExternalLibs/Sqlite_3_31_1/include/internal" -c ../src/sqlite3.c -o Build/Linux/release/sqlite-3.31.1/sqlite3.o


Then i have created with .so file using below command:


/vobs/JDF/CSIAtom/source/build/ccache /vobs/buildtools/linux-i386/icc-10.1/bin/icc   -shared  -o  libsqlite-3.31.1.so  ./Build/Linux/release/sqlite-3.31.1/sqlite3.o


But while linking this so with my project and am getting below error:

ERROR:--------------------------
../../../ExternalLibs/Sqlite_3_31_1/bin/Linux/libsqlite-3.31.1.so: undefined reference to `__sync_synchronize'
Failed (exit code 1)... retry 1
i
-----------------------------------
Please help, what i am missing here?

Regards
Kunal