[vtkusers] VTK_USE_ANSI_STDLIB/compile question

Reinhold Füreder R.Fureder at exeter.ac.uk
Wed Mar 23 03:46:18 EST 2005


Dear Bill,

I think the precompiled version was built without this flag, and thus,
you need to rebuild VTK with the VTK_USE_ANSI_STDLIB option set to ON.

HTH Reinhold

> -----Original Message-----
> From: vtkusers-bounces at vtk.org 
> [mailto:vtkusers-bounces at vtk.org] On Behalf Of Bill Vogler
> Sent: Wednesday, March 23, 2005 12:31 AM
> To: vtkusers at vtk.org
> Cc: Thuc Bui
> Subject: [vtkusers] VTK_USE_ANSI_STDLIB/compile question
> 
> 
> I downloaded the precompile version of vtk4.2 for the Windoze 
> platform. Our application uses the ANSI streams (e.g. 
> <iostream>, <fstream>, etc.).
> 
> When I initially compiled our app, I got a lot of error 
> messages telling me that I was "using-declaration causes a 
> multiple declaration of 'istream'". After doing some 
> "grepping" and using my infinite wisdom I included 
> VTK_USE_ANSI_STDLIB in my "Preprocessor Definitions" in the 
> Project Settings of MSVC++ 6.0. I assumed that since this 
> 2005, the precompiled versions must have used ANSI streams 
> (this logic will no doubt get me in trouble). Well to make a 
> long story short, the compile problems went away, BUT I got 
> some unresolved externals at the link stage. Sure enough, all 
> the unresolved externals were associated the ANSI streams: 
> For example:
> 
> BoaInteractorStyle.obj : error LNK2001: unresolved external 
> symbol "public: virtual void __thiscall 
> vtkObjectBase::PrintTrailer(class 
> std::basic_ostream<char,struct std::char_traits<char> > 
> &,class vtkIndent)" (?PrintTrailer at vtkObjectBase@@UAEXAAV?$
> basic_ostream at DU?$char_traits at D@std@@@std@@VvtkIndent@@@Z)
> 
> Did I error in including VTK_USE_ANSI_STDLIB in my 
> "Preprocessor Definitions"? Was the precompiled version on 
> the vtk.org download web page compiled with it?
> 
> TIA
> 
> Bill Vogler
> Calabazas Creek Research
> (530) 642-1955 Voice
> (530) 642-9614 Fax
> vogler at calcreek.com
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: 
http://www.vtk.org/Wiki/VTK_FAQ Follow this link to
subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list