On Sun, Aug 26, 2001 at 11:04:33PM -0500, Cameron Moore wrote:

> * [EMAIL PROTECTED] [2001.08.26 13:55]:
> > There is evidently a problem with my /usr/include/g++-2/stl_map.h
> > file. But I don't know if there is another version I can get or not
> > so does anyone have a suggestion?
> > 
> > Here's the error:
> > _______________________________________________________________________
> > 
> > In file included from /usr/include/g++-2/map.h:31,
> >                  from FGAerodynamics.h:48,
> >                               from FGAerodynamics.cpp:39:
> >                               /usr/include/g++-2/stl_map.h:70: warning:
> > ANSI C++ forbids typedef which does not specify a type
> > /usr/include/g++-2/stl_map.h:70: parse error before ;'
> > /usr/include/g++-2/stl_map.h:71: syntax error before ;'
> > /usr/include/g++-2/stl_map.h:73: rep_type' is not a class or namespace
> > /usr/include/g++-2/stl_map.h:73: pointer' is not a class or namespace
> > /usr/include/g++-2/stl_map.h:73: confused by earlier errors, bailing out
> 
> I'm not sure what the problem is.  What distro?  Are you up-to-date on
> all packages updates?  


Here are the files I am installing. I have all the other files 
installed including plib (or whatever) and whatever else is required
but FlightGear itself won't build because of the bad stl_map.h file.

SimGear-0.0.16.tar.gz
fgfs_base.0.7.8.tar.gz
FlightGear-0.7.8.tar.gz



> Can you reproduce the problem with a simple test


Whay kind of test?

I don't know what you mean. This is an error when I am compiling
flightgear. I have never compiled anything against stl_map.h that
I know of. 


> program?  Can you give us some context around line 70 of stl_map.h?
> -- 

Here's the offending lines.



private:
  typedef rb_tree<key_type, value_type, select1st<value_type>, 
       key_compare, Alloc> rep_type;

rep_type t; 
  public:
    typedef typename rep_type::pointer pointer;
    typedef typename rep_type::const_pointer const_pointer;
    typedef typename rep_type::reference reference;
    typedef typename rep_type::const_reference const_reference;
    typedef typename rep_type::iterator iterator;
    typedef typename rep_type::const_iterator const_iterator;
    typedef typename rep_type::reverse_iterator reverse_iterator;
    typedef typename rep_type::const_reverse_iterator const_reverse_iterator;
    typedef typename rep_type::size_type size_type;
    typedef typename rep_type::difference_type difference_type;
                      
                      

_______________________________________________
Flightgear-users mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to