[Insight-users] WrapITK on Solaris

Michael Bell michael.bell at acm.org
Fri Aug 4 13:54:36 EDT 2006


Gaetan,


I'm trying to compile WrapITK on solaris. I need to have the following
set in cmake in order for everything to work right:
CMAKE_EXE_LINKER_FLAGS           -lstdc++
CMAKE_MODULE_LINKER_FLAGS        -lstdc++

In ITK's wrapping, these flags are used correctly:
./SwigRuntime/CMakeFiles/SwigRuntimeJava.dir/build.make:
gcc  -fPIC -lstdc++  -shared  -Wl,-hlibSwigRuntimeJava.so -o
../../../bin/libSwigRuntimeJava.so $(SwigRuntimeJava_OBJECTS)
$(SwigRuntimeJava_EXTERNAL_OBJECTS) -L.


In WrapITK, I can't find the above file, or anyplace where stdc++ is
linked. As a result, I get a linker error in java:
java.lang.UnsatisfiedLinkError: libSwigRuntimeJava.so: ld.so.1: java:
fatal: relocation error:  symbol __gxx_personality_v0: referenced
symbol not found

How can I get stdc++ linked in correctly?

thanks,
michael


-- 
michael.bell at acm.org


More information about the Insight-users mailing list