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!


That would be my guess, too.  Where is JSAMPLE
#define'd, and what is its definition?

----- Original Message -----
From: Anthony Lee <al012@energex.com.au>
To: <gcc-help@gcc.gnu.org>
Sent: Wednesday, March 07, 2001 9:01 PM
Subject: Re: 'i' undeclared?! YOURE undeclared! The whole freakingsystem isu
ndeclared!


>
>
> "Federspiel, Charles" wrote:
> >
> > bash-2.02$ gcc -c textjpeg.c
> > textjpeg.c:75: warning: type mismatch with previous implicit declaration
> > textjpeg.c:64: warning: previous implicit declaration of
`write_JPEG_file'
> > textjpeg.c:75: warning: `write_JPEG_file' was previously implicitly
declared
> > to
> > return `int'
> > textjpeg.c: In function `write_JPEG_file':
> > textjpeg.c:85: parse error before `int'
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> That's your problem, something before your declaration of
>
> int i
>
> is stuffed. Try fixing that first.
>
>
> > textjpeg.c:88: `i' undeclared (first use in this function)
> > textjpeg.c:88: (Each undeclared identifier is reported only once
> > textjpeg.c:88: for each function it appears in.)
> > textjpeg.c:88: `imagesize' undeclared (first use in this function)
> > textjpeg.c:89: `image_buffer' undeclared (first use in this function)
> > textjpeg.c:99: parse error before `struct'
> > textjpeg.c:112: `jerr' undeclared (first use in this function)
> > textjpeg.c:124: `outfile' undeclared (first use in this function)
> > textjpeg.c:135: `image_width' undeclared (first use in this function)
> > textjpeg.c:136: `image_height' undeclared (first use in this function)
> > textjpeg.c:164: `row_stride' undeclared (first use in this function)
> > textjpeg.c:171: `row_pointer' undeclared (first use in this function)
> > bash-2.02$
> >
> > thanks for asking
> >
> > chuck
> >
> >
============================================================================
==
> > 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.
>
> --
> Anthony Lee
> Energex
> 150 Charlotte Street                 ..--  __o
> Brisbane                        ....--   _ \<,_
> Qld 4000                       ____     (_)/ (_)
> Australia
> voice:+61 7 3407 4541
> fax:  +61 7 3407 4607
> email: AL012@energex.com.au
>
>
> --------------------------------------------------------------------------
---------------------------------------------------------------------------
> This email message (and any accompanying file attachments) may contain
confidential or
> privileged information and is intended for the sole use of the addressee
named above. If you
> are not the intended recipient, or the person responsible for delivering
this message to the
> intended recipient, please notify ENERGEX immediately and destroy any
copies of the original
> message.
>
> Any unauthorised review, use, alteration, disclosure or distribution of
this email (including any
> attachments) by an unintended recipient is prohibited.
>
> ENERGEX accepts no responsibility for the content of any email which is
sent by an employee
> which is of a personal nature.
>


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