[vtkusers] stl related errors..

William A. Hoffman billlist at nycap.rr.com
Thu May 30 08:24:41 EDT 2002


Either remove the -LANG:std from the compiler flags, or turn on VTK_USE_ANSI_STDLIB.

-Bill


At 12:48 AM 5/30/2002 -0400, K.R.Subramanian wrote:

>Its been a while I had to deal with this. In going to 4.0, I get the following
>errors on streams (multiple definitions) on SGI IRIX, although I dont
>use these streams in this source file..
>
>     -- krs
>
>
>ace% make
>        CC -g  -LANG:std -I/home/krs/src/vtk052902/Common
>-I/home/krs/src/vtk052902/Graphics  -I/home/krs/src/vtk052902/Imaging
>-I/home/krs/src/vtk052902/Rendering  -I/home/krs/src/vtk052902/Patented
>-I/home/krs/src/vtk052902/Filtering  -I/home/krs/src/vtk052902/IO
>-I/home/krs/src/vtk052902   -c main.cc -o main.o
>cc-1101 CC: ERROR File = /usr/include/CC/iostream.h, Line = 51
>  "ostream" has already been declared in the current scope.
>
>  class ostream ;
>        ^
>
>cc-1101 CC: ERROR File = /usr/include/CC/iostream.h, Line = 54
>  "ios" has already been declared in the current scope.
>
>  class ios {
>        ^
>
>cc-1101 CC: ERROR File = /usr/include/CC/iostream.h, Line = 363
>  "istream" has already been declared in the current scope.
>
>  class istream : virtual public ios {
>        ^
>
>cc-1101 CC: ERROR File = /usr/include/CC/iostream.h, Line = 652
>  "cin" has already been declared in the current scope.
>
>  extern istream_withassign cin ;
>                            ^
>
>cc-1101 CC: ERROR File = /usr/include/CC/iostream.h, Line = 653
>  "cout" has already been declared in the current scope.
>
>
>
>--
>K.R.Subramanian                        Phone: (704) 687-4872
>Department of Computer Science         FAX:   (704) 687-4893
>UNC Charlotte, CARC 311                Email: krs at cs.uncc.edu
>Charlotte, NC 28223-0001               Web: http://www.cs.uncc.edu/~krs
>
>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers 




More information about the vtkusers mailing list