=?iso-8859-15?Q?[wxWidgets_2.8_/_CVS; _WinXP; _latest_MinGW]_Compile_err?= or in jpeglib

mandrivia.kyk at web.de mandrivia.kyk at web.de
Fri Nov 24 02:56:53 PST 2006


Hello!

First of all: Thank you for your great wxWidgets. It makes work so much easier (Well, using version 2.6.3 ;-) ).

Yesterday I tried to upgrade wxWidgets from 2.6.3 to 2.8. Configure worked properly but a few seconds after typing "make" to MSYS, I got these errors:

**************************************************************************
In file included from ../src/jpeg/jcomapi.c:14:
../src/jpeg/jpeglib.h:94: error: syntax error before "boolean"
../src/jpeg/jpeglib.h:94: warning: no semicolon at end of struct or union
../src/jpeg/jpeglib.h:95: warning: type defaults to `int' in declaration of `JQUANT_TBL'
../src/jpeg/jpeglib.h:95: warning: data definition has no type or storage class
../src/jpeg/jpeglib.h:110: error: syntax error before "boolean"
../src/jpeg/jpeglib.h:110: warning: no semicolon at end of struct or union
../src/jpeg/jpeglib.h:111: warning: type defaults to `int' in declaration of

`JHUFF_TBL'
../src/jpeg/jpeglib.h:111: warning: data definition has no type or storage class
../src/jpeg/jpeglib.h:160: error: syntax error before "boolean"
../src/jpeg/jpeglib.h:160: warning: no semicolon at end of struct or union
../src/jpeg/jpeglib.h:175: error: syntax error before '*' token
../src/jpeg/jpeglib.h:175: warning: type defaults to `int' in declaration of `quant_table'
../src/jpeg/jpeglib.h:175: warning: data definition has no type or storage class
../src/jpeg/jpeglib.h:179: error: syntax error before '}' token
../src/jpeg/jpeglib.h:179: warning: type defaults to `int' in declaration of `jpeg_component_info'
../src/jpeg/jpeglib.h:179: warning: data definition has no type or storage class
../src/jpeg/jpeglib.h:254: error: syntax error before "boolean"
../src/jpeg/jpeglib.h:254: warning: no semicolon at end of struct or union
../src/jpeg/jpeglib.h:259: error: syntax error before '}' token
../src/jpeg/jpeglib.h:269: error: syntax error before "boolean"
../src/jpeg/jpeglib.h:269: warning: no semicolon at end of struct or union
../src/jpeg/jpeglib.h:299: error: syntax error before '*' token
../src/jpeg/jpeglib.h:299: warning: type defaults to `int' in declaration of `comp_info'

[...]

../src/jpeg/jcomapi.c:88: error: for each function it appears in.)
../src/jpeg/jcomapi.c:90: error: syntax error before ')' token
../src/jpeg/jcomapi.c:91: error: dereferencing pointer to incomplete type
../src/jpeg/jcomapi.c: At top level:
../src/jpeg/jcomapi.c:97: error: syntax error before '*' token
../src/jpeg/jcomapi.c:99: warning: return type defaults to `int'
../src/jpeg/jcomapi.c: In function `jpeg_alloc_huff_table':
../src/jpeg/jcomapi.c:100: error: `tbl' undeclared (first use in this function)
../src/jpeg/jcomapi.c:102: error: syntax error before ')' token
../src/jpeg/jcomapi.c:103: error: dereferencing pointer to incomplete type
make: *** [wxjpeg_jcomapi.o] Error 1
**************************************************************************

The code which caused the topmost error looks like this:

**************************************************************************
typedef struct {
/* This array gives the coefficient quantizers in natural array order
* (not the zigzag order in which they are stored in a JPEG DQT marker).
* CAUTION: IJG versions prior to v6a kept this array in zigzag order.
*/
UINT16 quantval[DCTSIZE2]; /* quantization step for each coefficient */
/* This field is used only during compression. It's initialized FALSE when
* the table is created, and set TRUE when it's been output to the file.
* You could suppress output of a table by setting this to TRUE.
* (See jpeg_suppress_tables for an example.)
*/
boolean sent_table; /* TRUE when table has been output */
} JQUANT_TBL;
**************************************************************************

The problem seems to be rather a MinGW specific problem than a bug in the code. My MinGW should be up to date, because I installed all the updates which are announced on the MinGW website (I'm refreshing my whole PC at the moment).

I used many different configure options and tried to compile wxWidgets 2.8, yesterday's and today's CVS-versions. It's always the same error.
BTW: compiling wxWidgets 2.6.3 works fine.

Thank you for any help.
______________________________________________________________________________
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!





More information about the wx-users mailing list