<html>
It would seem we are stuck with adding -lCrun for this compiler....<br>
It can be done in the CMakeList file with IF's on the CMAKE_SYSTEM
and<br>
CMAKE_COMPILER_IS_GNUCXX.<br>
<br>
<br>
<a href="http://docs.sun.com/htmlcoll/coll.32.8/iso-8859-1/CPPPUG/Building.html" eudora="autourl">http://docs.sun.com/htmlcoll/coll.32.8/iso-8859-1/CPPPUG/Building.html</a><br>
<br>
<br>
<font face="Verdana"><b>Note – </b>The </font>CC<font face="Verdana">
</font>-G <font face="Verdana">command does not pass any </font>-l<font face="Verdana"> options to </font>ld<font face="Verdana">. If you want the shared library to have a dependency on another shared library, you must pass the necessary </font>-l<font face="Verdana"> option on the command line. For example, if you want the shared library to be dependent upon </font>libCrun.so<font face="Verdana">, you must pass </font>-lCrun<font face="Verdana"> on the command line. <br>
<br>
<br>
<br>
<br>
</font>At 02:02 PM 5/2/2002 -0400, David Gobbi wrote:<br>
<blockquote type=cite class=cite cite>On 2 May 2002, Andy Cedilnik wrote:<br>
<br>
> My observations so far:<br>
> Yes, it has to do with C++ compiler. When libvtkCommon.so and so on are<br>
> build they do not link to libCrun.so. When vtk executable is build it<br>
> does. The result is that VTK/Python on Sun using Sun C++ compiler will<br>
> not work. I even tried to link libCrun by myself and that resulted in:<br>
><br>
> Python 1.5.2 (#5, May  1 2002, 11:42:34) [C] on sunos5<br>
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam<br>
> >>> import vtk<br>
[snip]<br>
> /space/andy/vtk/VTK-bin/bin/libvtkCommonPython.so: symbol<br>
> __1cDstdEcerr_: referenced symbol not found<br>
><br>
> And so on.<br>
<br>
Some detective work with nm and grep should allow you to find all of the<br>
libraries that have to be linked to.  This will add a lot of extra stuff<br>
in CMake that is specific to a single compiler on a single platform,<br>
but the other solution (re-linking the python executable with C++)<br>
is really just a one-shot solution.<br>
<br>
 - David<br>
<br>
_______________________________________________<br>
vtk-developers mailing list<br>
vtk-developers@public.kitware.com<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" eudora="autourl">http://public.kitware.com/mailman/listinfo/vtk-developers</a> </blockquote></html>