Shared object with Sqlite?
Benjiro via Digitalmars-d
digitalmars-d at puremagic.com
Mon Dec 12 07:19:55 PST 2016
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
> not be used when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
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.
More information about the Digitalmars-d
mailing list