Sender: root AT delorie DOT com Message-ID: <3749697E.E58AA0EA@inti.gov.ar> Date: Mon, 24 May 1999 12:00:14 -0300 From: salvador Organization: INTI X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: es-AR, en, es MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: How do I fix this "warning"? References: <9jZVJBAF3qR3Ewpp AT dunvegan1 DOT demon DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Paul Richards wrote: > Paul Richards writes, > >Hi, > >How do I fix the warning that I get from the compiler on this: > > extern Ship* const pships=(new Ship[num_bots]); > >The compiler gives me a warning saying "'pships' is initialised and > >declared 'extern'". > > > >And why does that generate a warning when something like: > > extern const double height=15.6; > >doesn't? > > Well no-one seems to know, how do I get rid of it with a #pragma > compiler directive thingy?? Looks like you used Borland products ;-) gcc doesn't have #pragma extensions to do it. 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-soft AT usa DOT net set AT computer DOT org set AT ieee DOT org set-soft AT bigfoot DOT com Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013