[CMake] Linking problem
Salvatore Iovene
salvatore.iovene+cmake at googlemail.com
Wed Nov 7 02:12:58 EST 2007
Hi,
I'm not 100% sure this is really a CMake related question, but I'll
fire it up anyway:
I'm building a series of static libraries, name them liba.a, libb.a
and libc.a, and linking them into a shared library libfoo.so.
Then I'm building libx.a liby.a and libz.a and linking them into the
shared libbar.so.
Then I have an executable whatever.exe that's linked to to libfoo.so
and libbar.so. The linking of the executable fails complaining of
certain missing simbols. Some symbols from liba.a are missing in
libbar.so.
So far I have "fixed" the issue by linking one of the libs of
libfoo.so (say libx.a) to libbar.so. But this smells of nasy
workaround.
Obviously I'm doing something wrong here, so could anyone please help?
Thanks!
--
Salvatore Iovene
http://www.iovene.com/
Key Fingerprint: 5647 944D D5AD 2E87 00B4 7D54 2864 359D FF20 16D8
More information about the CMake
mailing list