Re: Shared object with Sqlite?

2016-12-14 Thread Benjiro via Digitalmars-d
On Monday, 12 December 2016 at 15:39:47 UTC, Mike Parker wrote: On Monday, 12 December 2016 at 15:19:55 UTC, Benjiro wrot From my understanding, because the libdll has a shared tag, the libsqlite3.a needs to be linked as static and the rest needs to be dynamic. I found some examples using Gcc

Re: Shared object with Sqlite?

2016-12-12 Thread Mike Parker via Digitalmars-d
On Monday, 12 December 2016 at 15:19:55 UTC, Benjiro wrot From my understanding, because the libdll has a shared tag, the libsqlite3.a needs to be linked as static and the rest needs to be dynamic. I found some examples using Gcc ( static & dynamic flags ) but those do not work for DMD. If

Re: Shared object with Sqlite?

2016-12-12 Thread Benjiro via Digitalmars-d
On Monday, 12 December 2016 at 14:11:49 UTC, Mike Parker wrote: So replace libsqlite3.so with the static library here. See the 3th example in the original post... /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libsqlite3.a(sqlite3.o): relocation R_X86_64_PC32 against symbol `sqlite3_strnicmp' can n

Re: Shared object with Sqlite?

2016-12-12 Thread Mike Parker via Digitalmars-d
On Monday, 12 December 2016 at 13:12:35 UTC, Benjiro wrote: A silly question that has me pounding my head for a while. I am trying to compile a shared object WITH sqlite3 included into the shared object. dmd -c dll.d -fPIC -L-ldl -L/usr/lib/x86_64-linux-gnu/libsqlite3.a dmd -oflibdll.so dll.o

Shared object with Sqlite?

2016-12-12 Thread Benjiro via Digitalmars-d
A silly question that has me pounding my head for a while. I am trying to compile a shared object WITH sqlite3 included into the shared object. dmd -c dll.d -fPIC -L-ldl -L/usr/lib/x86_64-linux-gnu/libsqlite3.a dmd -oflibdll.so dll.o -shared -defaultlib=libphobos2.so -L-rpath=/root/dlangProje