[vtkusers] VTK compile errors
tom walk
tcwalk at gmail.com
Sat Dec 19 02:18:31 EST 2009
Thanks for the quick responses. I built in VC 9, and it worked, so it
was VS 10 issue.
To answer your question, Mathieu, I built in a new folder so as not to
mix builds and so that I could keep the good, static library build. I
also appreciate your looking through my cmake file. Sorry to have you
do that when I should have thought to use VC9 myself.
Now I am going to try to incorporate wrappers. Hopefully it will
work. Although my previous response was written with some
frustration, this resource is much appreciated for the help it
provides.
Tom
On Fri, Dec 18, 2009 at 1:40 PM, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> On Fri, Dec 18, 2009 at 6:39 PM, tom walk <tcwalk at gmail.com> wrote:
>>> vtksys.lib(vtksys.dll) : error LNK2005: "public: int __thiscall
>>> std::basic_string<char,struct std::char_traits<char>,class
>>> std::allocator<char> >::compare(class std::basic_string<char,struct
>>> std::char_traits<char>,class std::allocator<char> > const &)const "
>>> (?compare@?$basic_string at DU?$char_traits at D at std@@V?$allocator at
>>> D at 2@@std@@QBEHABV12@@Z)
>>> already defined in vtkAbstractArray.obj
>
> Are you sure you did start from a clean build tree after trying with
> static builds ? Just delete the binary directory this is a no-op.
>
> If this still does not work, try the following:
> edit VTK/Utilities/kwsys/String.hxx.in
>
> and remove the EXPORT keyword:
>
> replace
>
> class @KWSYS_NAMESPACE at _EXPORT String: public @KWSYS_NAMESPACE at _stl::string
>
> into
>
> class String: public @KWSYS_NAMESPACE at _stl::string
>
> Cheers
> --
> Mathieu
>
More information about the vtkusers
mailing list