[vtkusers] static libs...

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Oct 18 17:26:45 EDT 2006


fred wrote:
> Obada Mahdi a écrit :
> 1) libstdc++ is _mandatory_, but not the use of g++.
> 2) I don't need all the libs I have used before. Only these above are in
> fact needed to build (and run ;-)
> my C code.
> 3) Anyway, I get this warning:
>  Using 'dlopen' in statically linked applications requires at runtime the
>  shared libraries from the glibc version used for linking
> that I don't understand.
> 
> Any suggestion ?

Why don't you use CMake instead as Obada suggested ? It will do all of 
this for you transparently...

----BEGIN----
PROJECT (vtktest)

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

ADD_EXECUTABLE(vtktest vtktest.c)
TARGET_LINK_LIBRARIES(vtktest vtkIO)
----END----


2 cents,
Mathieu



More information about the vtkusers mailing list