Mail Archives: djgpp/2000/09/18/09:31:33
Joshua Masiku wrote:
> I am using djgpp 2.95 and allegro 3.0 when I compile a program I've
> written it tells me ansi C++ doesn't allow this or the other but I've
> adhered to strict ansi C++ and I don't understand why it doesn't
> work. are there some flags I need to set to get this thing to work. I
> ve declared my variables in the right scope but I get lots of errror
> messages saying "ansi C++ doesn't allow declaration without type"
> where my variables are initialised.
Eithout code I can't say much, but here is my guess:
ANSI C++ says the following code is invalid:
const XXXX=1;
You *must* provide a type, like this:
const int XXXX=1;
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 bigfoot DOT com 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 -