delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/15/07:24:23

From: uly AT mindspring DOT com (Michael D. Hill)
Subject: Egcs 1.1 having trouble with 'typename'?
15 Sep 1998 07:24:23 -0700 :
Message-ID: <2.2.32.19980915030531.00718674.cygnus.gnu-win32@mindspring.com>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

Environment: Win95, Cygwin32 19.1, latest Coolview, Egcs 1.1

Folks...

I have a small program that was compiling okay with egcs 1.0.2.  I've just
upgraded to 1.1 and the compiler's having a hard time, seemingly in coping
with the typename keyword.  Here's the first couple of compile erros I'm
getting:

c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../include/
g++/stl_iterator.h:319: parse error before `&'
c:\\USR\\H-I386~1\\lib\\gcc-lib\\i386-cygwin32\\2.7-B19\\../../../../../include/
g++/stl_iterator.h:319: `back_insert_iterator<Container>::operator =(...)' must
take exactly one argument

In both of these locations a typename is being identified or used.  

I just *know* this is something silly, and that I'm gonna be embarassed when
I realize what silly compiler switch or #define or whatever that I should be
using.  But meanwhile, I'm desperate enough to ask out loud:  Does the egcs
1.1 actually have support for typename and explicit, and is it possible my
stl_config.h isn't set up right?

Thanks!
Hill


+------------------------------------------------------------+
|Michael Hill --   <uly AT mindspring DOT com>	                     |
|Consultant, Developer, Teacher, Coach	                     |
|I will translate patterns-related postscript papers to .pdf |
|for anyone.  E-mail me for instructions.                    |
+------------------------------------------------------------+

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019