[vtkusers] Patch for vtk 5.0.1 (and probably later releases too)

Kleistereimer kleistereimer at gmx.de
Thu Oct 23 16:18:53 EDT 2008


hi!

thankyou for this fine library!

i found a small bug in the tiff library function name mangling of vtk.


vtk_tiff_mangle.h
+ #define _TIFFBuiltinCODECS vtk__TIFFBuiltinCODECS


if i build vtk as static library, and link my project with "vtktiff.lib"
AND some other (original) tiff lib too, all SHOULD be fine because vtk
mangles the names of the tiff library. But i get the following error:

CORE_RL_tiff_.lib(tif_codec.obj) : error LNK2005: __TIFFBuiltinCODECS
already in CORE_RL_tiff_.lib(tif_codec.obj) defined

(CORE_RL_tiff_.lib is the tiff library from imagemagic)

-> _TIFFBuiltinCODECS was forgotten in the vtk tiff mangling. see above
patch.



of course this links in 2 tiff librarys. this wastes space! it would be
prefered to have NO mangling at all, this way one just could stop
linking against "vtktiff.lib", (or the other tiff lib) and all would be
fine. (symbols satisfied)
disatvantage: maybe another version (untested with vtk) of the tiff
library code might be linked in.

regards,
kl



More information about the vtkusers mailing list