Mail Archives: djgpp/1999/05/24/10:52:05
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
- Raw text -