Re: [sqlite] Static sqlite3 library for Linux

2018-02-15 Thread Petros Marinos
Greetings Peter and thank you for your answer! Ok, I’ll give these switches a go and will get back with my findings. Concerning the side question, of course I can answer, no problem! It is fully developed in-house. Best Regards, Petros On 14 Feb 2018, 20:48 +0200, petern , wrote: > Petros, FYI.

Re: [sqlite] Static sqlite3 library for Linux

2018-02-14 Thread petern
Petros, FYI. gcc also has several different switches for object ouput: eg. "gcc -c -static ..." It might help to investigate these options during steps to compile sqlite.c and your main program to avoid dynamic/static symbol conflicts. -static On systems that support dynamic l

Re: [sqlite] Static sqlite3 library for Linux

2018-02-14 Thread Petros Marinos
Thank you Arjen and Simon for your answers, really helpful! While there was progress by following the two commands noted in Arjen’s answer and creating the libsqlite.a file, I stumbled upon the following errors: [LD] astdb2sqlite3.o db1-ast/libdb1.a -> astdb2sqlite3 /usr/lib/gcc/x86_64-redhat-li

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 Arjen Markus
If you use the amalgamated source, there is only one file to be compiled. 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- > From: sqlite-users