[vtkusers] Error Compiling MY VTK Code for Mac OSX 10.2.6

Srinivasan Srivilliputhur sgsrini at lanl.gov
Tue Sep 23 11:52:59 EDT 2003


Dear All:

I successfully compiled VTK nightly release on my Mac running OSX 10.2.6.

My GNU compiler is: "Apple Computer, Inc. GCC version 1175, based on 
gcc version 3.1 20020420 (prerelease)"

However, I'm having difficulty compiling my VTK application.  The 
error seem to be related to the headers called by gcc compiler and is 
as follows.  Will someone help me understand what is going on?  Thanks

-Srini

Error Message:
--------------


In file included from /usr/include/gcc/darwin/3.1/g++-v3/bits/basic_ios.h:40,
                  from /usr/include/gcc/darwin/3.1/g++-v3/ios:51,
                  from /usr/include/gcc/darwin/3.1/g++-v3/ostream:45,
                  from /usr/include/gcc/darwin/3.1/g++-v3/iostream:45,
                  from /Users/sgsrini/local/VTK/Common/vtkIOStream.h:34,
                  from /Users/sgsrini/local/VTK/Common/vtkSystemIncludes.h:49,
                  from /Users/sgsrini/local/VTK/Common/vtkIndent.h:27,
                  from /Users/sgsrini/local/VTK/Common/vtkObjectBase.h:46,
                  from /Users/sgsrini/local/VTK/Common/vtkObject.h:44,
                  from /Users/sgsrini/local/VTK/Common/vtkViewport.h:35,
                  from /Users/sgsrini/local/VTK/Rendering/vtkRenderer.h:35,
                  from renderer.cpp:3:
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:46: parse error
    before `<' token
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:51: syntax error
    before `;' token
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:52: `_CharT' was
    not declared in this scope
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:52: `_Traits' was
    not declared in this scope
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:52: template
    argument 1 is invalid
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:52: template
    argument 2 is invalid
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:53: `_CharT' was
    not declared in this scope
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:53: `_Traits' was
    not declared in this scope
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:53: template
    argument 1 is invalid
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:53: template
    argument 2 is invalid
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:55: parse error
    before `private'
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:59: parse error
    before `public'
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h: In function `int
    std::ostreambuf_iterator(streambuf_type*)':
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:65: `int
    std::ostreambuf_iterator(streambuf_type*)' redeclared as different kind of
    symbol
/usr/include/gcc/darwin/3.1/g++-v3/iosfwd:98: previous declaration of `
    template<class _CharT, class _Traits = std::char_traits<_CharT> > class
    std::ostreambuf_iterator'
/usr/include/gcc/darwin/3.1/g++-v3/iosfwd:98: previous non-function declaration
    `template<class _CharT, class _Traits = std::char_traits<_CharT> > class
    std::ostreambuf_iterator'
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:65: conflicts with
    function declaration `int std::ostreambuf_iterator(streambuf_type*)'
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:65: `_M_sbuf'
    undeclared (first use this function)
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:65: (Each
    undeclared identifier is reported only once for each function it appears
    in.)
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:65: only
    constructors take base initializers
/usr/include/gcc/darwin/3.1/g++-v3/bits/streambuf_iterator.h:65: 
confused by earlier errors, bailing out
make: *** [renderer.o] Error 1






-- 
***************************************************************************
*         Srinivasan G. Srivilliputhur, Technical Staff Member		  *
***************************************************************************
* MST-8 Group, MS: G755              | email: sgsrini at lanl.gov            *
* Los Alamos National Laboratory     | PHONE: (505)665-0478               *
* Los Alamos NM 87545                | FAX:   (505)667-8021               *
***************************************************************************
*   2000 B.C. - Here, eat this root.                                      *
*   1000 A.D. - That root is heathen. Here, say this prayer.              *
*   1850 A.D. - That prayer is superstition. Here, drink this potion.     *
*   1940 A.D. - That potion is snake oil. Here, swallow this pill.        *
*   1985 A.D. - That pill is ineffective. Here, take this antibiotic.     *
*   2000 A.D. - That antibiotic is artificial. Here, eat this root.       *
***************************************************************************



More information about the vtkusers mailing list