This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 'i' undeclared?! YOURE undeclared! The whole freakingsystem isu ndeclared!


There are no declarations outside the blocks. 
The extern declarations were commented out.

The version of gcc I'm using is 2.95.2

JSAMPLE is defined in jmorecfg.h, which is included by jpeglib.h.
It is just an unsigned char. or a short.  the typedef is in a 
#ifdef/#else pair that use HAVE_UNSIGNED_CHAR as the criterion.
as long as its >= 16bits. 

later

chuck

-----Original Message-----
From: Alexandre Oliva
To: Federspiel, Charles
Cc: 'gcc-help@gcc.gnu.org'
Sent: 3/7/01 9:13 PM
Subject: Re: 'i' undeclared?! YOURE undeclared! The whole freaking system
isu ndeclared!

On Mar  7, 2001, "Federspiel, Charles" <Charles.Federspiel@hbo.com>
wrote:

> textjpeg.c: In function `write_JPEG_file':
> textjpeg.c:85: parse error before `int'

In C, after the first statement, you can only have declarations in
nested blocks.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

==============================================================================
This e-mail is intended only for the use of the addressees.  Any copying, forwarding, printing or other use of this e-mail by persons other than the addressees is not authorized.  This e-mail may contain information that is privileged, confidential and exempt from disclosure.  If you are not the intended recipient, please notify us immediately by return e-mail (including the original message in your reply) and then delete and discard all copies of the e-mail.  Thank you.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]