Re: [Nautilus-list] compile error with gcc-3.0



On Sat, 2001-10-06 at 18:06, Havoc Pennington wrote:
> 
> Thomas Cataldo <tomc compaqnet fr> writes:
> > Compilation is failing because of a missing ';' in
> > nautilus-mozilla-embed-extensions.cpp
> > 
> > struct Encoding
> > {
> > 	Encoding (const char *encoding,
> > 	      const char *encoding_title,
> > 	      const char *translated_encoding_title) :
> > 		m_encoding (encoding),
> > 		m_encoding_title (encoding_title),
> > 		m_translated_encoding_title (translated_encoding_title)
> > 	{
> > 	}; <--------------------- HERE
> 
> Huh? No semicolon should be required there, unless I'm missing
> something.

Well, I was thinking so, but g++ 3 seems to think differently...
without the semicolon, I get:

nautilus-mozilla-embed-extensions.cpp:60: 'string' is used as a type,
but is 
   not defined as a type.

line 60 is string m_encoding;

> 
> Havoc
> 
> _______________________________________________
> nautilus-list mailing list
> nautilus-list lists eazel com
> http://lists.eazel.com/mailman/listinfo/nautilus-list
> 






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]