[vtkusers] static libs...

fred fredmfp at gmail.com
Wed Oct 18 02:41:19 EDT 2006


Obada Mahdi a écrit :

> actually, I am surprised that your first command should work--is there
> any C++ code in "vtktest.c"?  I would not know of a gcc that accepts
> C++ code unless the source file has a "proper" extension (like "cc",
> "cxx"...), or it is explicitly stated on the command line.
>
No, it's pure C code : I use vtkXMLWriterC interface.
Sorry, I should have mention it.
(see
http://public.kitware.com/pipermail/vtkusers/2006-September/087124.html)
I only upgraded from sarge to etch since (so all VTK stuff is not
anymore built from
tarball in /usr/local, but installed in /usr from deb packages).

> Unlike shared libraries, static libraries do not carry dependency
> information, so every required library needs to be stated explicitly
> (in order, which means that a library is to be given on the command
> line after the one that depends on it).  You can obtain dependency
> information from
> "<PREFIX>/lib/vtk-<VERSION>/VTKLibraryDepends.cmake",
> or, better yet, use CMake to build your project--just have a look at
> one of the "CMakeLists.txt" files from the VTK C++ examples.

That's the info I surely lack.

Thanks !

Cheers,

-- 
http://scipy.org/FredericPetit




More information about the vtkusers mailing list