delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/07/15:45:20

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Sender: salvador AT delorie DOT com
Message-ID: <3C112B29.E0ADA164@inti.gov.ar>
Date: Fri, 07 Dec 2001 17:48:41 -0300
From: salvador <salvador AT inti DOT gov DOT ar>
Organization: INTI
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i686)
X-Accept-Language: es-AR, en, es
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: class-key error under gcc 3.0.2
References: <Xns9170C4F7CAC97rfdfciasdsdj412tr AT 213 DOT 180 DOT 128 DOT 20>
Reply-To: djgpp AT delorie DOT com

Raf256 wrote:

> this line :
>   void addDriver(int n, const char *NAME) {
>   modeDriver.add(cDYModeDriver(n,NAME)); }
>
> gives under GCC 3.0.2 :
>   d_crt.h(18) Error: friend declaration requires class-key, i.e. `friend
>   class cTMPort'
>
> Please help I can't include all file (2000 lines) - what does this error
> mean in general ?

This error means you declared something like:

friend Name_of_one_of_your_classes;

instead of:

friend class Name_of_one_of_your_classes;

I guess your case is

friend cTMPort;
instead of
friend class cTMPort;

SET

--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set AT computer DOT org set AT ieee DOT org
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013



- Raw text -


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