[vtkusers] VTK and C++ Libs and dlls

Bob Palank bob at stlcc.org
Mon May 12 18:12:40 EDT 2003


The following may be worthy of additional input.
First, when you compile, you invoke vtk routines that you did not code and
these references need to be resolved in order to provide a clean compile.
Thus the need for a .lib File.
The resulting .obj file then needs to be linked to the executable code in
the .dll files. Thus you need both.
In VC#.Net, and perhaps managed code in VC++.Net, the references may no
longer require lib files since the output of the compiler is intermediate
language code that is executed in conjunction with the Common Language
runtime. Even though you are using Borland, the same concepts most likely
apply.

These are my thoughts and perhaps others can amplify and possibly offer
corrections to my text.
Hope this helps.
Bob
I am using vtk 4.2 and Borland C++ Builder 6 on a PC running WinXP Pro. I
added
all required VTK LIB files to my C++ project. However, my C++ program did
not
run without VTK DLLs installed on my client PCs. On my Project | Options |
Linker settings, I unchecked "Use Dynamic RTL". Is there anyway to get rid
of
this DLL requirement? Do I have to use both VTK LIBs and DLLs? Will any guru
please straighten this up? Thanks a lot. Yang.




More information about the vtkusers mailing list