[vtkusers] /MD(d) vs /MT(d)

Goodwin Lawlor goodwin.lawlor.lists at gmail.com
Tue Jun 24 18:15:20 EDT 2014


Hi Maarten,

I usually find when you link VTK libs against the static runtime all
dependent libraries must be linked against it too... otherwise you get name
collisions between libcmt.lib (static) and msvcrt.lib (shared).

So, for example, if you generate the VTK Tcl wrapper libs, you have to
build the static Tcl libs against libcmt.lib yourself for inclusion in the
project.

hth,

Goodwin


On Mon, Jun 23, 2014 at 8:08 PM, Maarten Beek via vtkusers <vtkusers at vtk.org
> wrote:

> Hello,
>
> I can build VTK 6.1.0 perfectly fine with the default /MD(d) settings.
> When I change /MD(d) into /MT(d) in CMake, the build breaks at the
> vtkParallelCore-6.1 project.
>
> BUILD_SHARED_LIBS is checked, as is VTK_Group_Qt.
>
> Anyone able to tell me how to build VTK with the /MT(d) setting?
>
> Thanks - Maarten
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140624/5c01915e/attachment.html>


More information about the vtkusers mailing list