[CMake] Problem linking to shared library (inside project) after upgrade to cmake 2.6

Bill Hoffman bill.hoffman at kitware.com
Sun Jul 13 11:45:29 EDT 2008


Yogesh Marwaha wrote:
> First of all, *sorry* for repeated posts containing output.txt/zip...
> but I had cancelled the post using the link provided in the mail sent
> by cmake-bounces at cmake.org
> 
> Now, to the point:
> 
> Result of: nm --demangle libGravityCore.so | grep "Gravity::self"
> 0005e800 t Gravity::self()
> 
> Result of: nm --demangle libGravityCore.so | grep "GApplication::GApplication"
> 00072fa0 t GApplication::GApplication()
> 000730a0 t GApplication::GApplication()
> 
Little t usually means local linkage, so that would be why you can not 
see the symbols from an external library.  I don't think this is a CMake 
issue, but rather a C++ issue of some sort.  What does the header file 
for GApplication and the .cxx file look like?

-Bill


More information about the CMake mailing list