Re: DJGPP - Configure errors
Brought to you by:
set
From: Salvador E. T. <sal...@in...> - 2005-08-01 15:55:47
|
Oswald Buddenhagen wrote: >On Mon, Aug 01, 2005 at 10:45:16AM -0300, Salvador Eduardo Tropea wrote:= > =20 > >>Empty lines are allowed in C and C++, this semicolon is an empty line, = >>just like this: >> >>void pp() >>{ >>} >> >>// Next is empty >>; >> >> =20 >> >that's not an empty line, but an empty statement=20 > Right. >(in a context where no statement is required). > Not required but allowed, etc. > the gcc folks decided to make this an error in >gcc 3.4. i like it that way ... > =20 > Not at least for my copy: kotori:/tmp$ g++-3.4 --version g++-3.4 (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-13) Copyright (C) 2004 Free Software Foundation, Inc. Esto es software libre; vea el c=F3digo para las condiciones de copia. N= O hay garant=EDa; ni siquiera para MERCANTIBILIDAD o IDONEIDAD PARA UN PROP=D3S= ITO EN PARTICULAR I compiled it without warnings: (-Wall used): #include <stdio.h> void pp();;; int main(int argc, char *argv[]) { printf("Hello\n");; return 0; } ; And I don't like it this way because macros like it: #define XXXX(a) YYYY(a); Becomes wrong if used like this: XXXX(a); And in this case is gcc 2.95.2 and getting confused by one in a dozen of = lines like it. BTW: Andris tried the code using 4.0.0 and didn't found it. SET --=20 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: se...@co... se...@ie...=20 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |