[sqlite] Static sqlite3 library for Linux.

2018-02-14 Thread Petros Marinos
Greetings! While I am trying to build a static library of another tool which is dependent to sqlite, I need to use an sqlite3 static library as well. Still, in my Centos 7.4 system, I cannot find one. The error is shown below: /bin/ld: cannot find -lsqlite3 collect2: error: ld returned 1 exit s

[sqlite] Static sqlite3 library for Linux

2018-02-14 Thread Petros Marinos
Greetings dears! While I am trying to build a static library of another tool which is dependent to sqlite, I need to use an sqlite3 static library as well. Still, in my Centos 7.4 system, I cannot find one. The error is shown below: /bin/ld: cannot find -lsqlite3 collect2: error: ld returned 1

Re: [sqlite] Static sqlite3 library for Linux

2018-02-14 Thread Arjen Markus
sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On > Behalf > Of Petros Marinos > Sent: Wednesday, February 14, 2018 3:30 PM > To: sqlite-users@mailinglists.sqlite.org > Subject: [sqlite] Static sqlite3 library for Linux > > Greetings dears! > > While I am

Re: [sqlite] Static sqlite3 library for Linux.

2018-02-14 Thread Simon Slavin
On 13 Feb 2018, at 10:55am, Petros Marinos wrote: > Is there any chance that I can find a Linux flavour static sqlite3 library, > or do I have to build from source? > And if I have to build from source, is it recommended to use the > sqlite-autoconf or the sqlite-src pkg? Or does the amalgamati

Re: [sqlite] Static sqlite3 library for Linux

2018-02-14 Thread Petros Marinos
; That can be as simple as: > > gcc -c sqlite3.c > > ar r libsqlite3.a sqlite3.o > > > > Any further dependencies are up to the linker. No need to worry about that. > > > > Regards, > > > > Arjen > > > > -Original Message- > > Fro

Re: [sqlite] Static sqlite3 library for Linux

2018-02-14 Thread petern
e' > collect2: error: ld returned 1 exit status > make[1]: *** [astdb2sqlite3] Error 1 > make: *** [utils] Error 2 > > There seems to be a conflict concerning the libc.a and libpthread.a static > libraries? Maybe libc.a and/or libpthread.a are included in libsqlite3.a, > but are conf

Re: [sqlite] Static sqlite3 library for Linux

2018-02-15 Thread Petros Marinos
lite3.c:(.text+0xf53e): undefined reference to `dlsym' > > /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libsqlite3.a(sqlite3.o): > > In function `unixDlClose': > > sqlite3.c:(.text+0xf570): undefined reference to `dlclose' > > collect2: error: ld ret