AW: [CMake] Missing symbols in library after successfull link to
astatic lib on Linux
wedekind
wedekind at caesar.de
Tue May 2 06:14:39 EDT 2006
Hello Alexander,
thanks for your reply. Compiling the DCMTK source files with my project's
sources was not possible, but I have found a solution now. I had to
recompile the static DCMTK libs with -fPIC to generate position independent
code. Now DCMTK-part of my shared lib can be loaded dynamically too :)
Best regards
Marco
-----Ursprüngliche Nachricht-----
Von: Alexander Neundorf [mailto:a.neundorf-work at gmx.net]
Gesendet: Donnerstag, 27. April 2006 18:41
An: wedekind
Cc: cmake at cmake.org
Betreff: Re: [CMake] Missing symbols in library after successfull link to a
static lib on Linux
I don't know the exact details, but linking static libs to shared libs is
problematic, you shouldn't do this.
To have it work you would need special linker flags.
Can you simply compile the source files of the static lib directly for
the shared lib ?
Bye
Alex
More information about the CMake
mailing list