From: Paul Richards Newsgroups: comp.os.msdos.djgpp Subject: How do I fix this "warning"? Date: Tue, 18 May 1999 18:42:05 +0100 Organization: Paul's house Message-ID: NNTP-Posting-Host: dunvegan1.demon.co.uk X-NNTP-Posting-Host: dunvegan1.demon.co.uk:193.237.111.243 X-Trace: news.demon.co.uk 927049409 nnrp-07:20375 NO-IDENT dunvegan1.demon.co.uk:193.237.111.243 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 X-Newsreader: Turnpike (32) Version 4.01 <5Y9PmoTxnkdx6tAFcQ+gcCx86I> Lines: 15 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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? -- Paul Richards (AKA Pauldoo) EMAIL paul AT dunvegan1 DOT demon DOT co DOT uk FAX +44 (0)870 0522086 HTTP www.dunvegan1.demon.co.uk/paul/ ICQ 14106503