error compilation with mingw

Didier Bretin didier at bretin.net
Fri Feb 1 10:11:24 PST 2008


Thanks Michael for your help.

On 01/02/2008 18:02, Michael Wetherell wrote:
>> (without-zlib because I have a zlib.h not found error)
> 
> Is it just a warning during configure? e.g.:
> configure: WARNING: zlib library not found or too old, will use built-in 
> instead
> 
> If so then it should fall back to wxWidget's own zlib.h and build anyway 
> without the --without-zlib (delete configarg.cache before 
> reconfiguring).

I will try.

> 
>> and then with make:
>> $ make
>> /c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o baselib_fs_arc.o 
>> -D__WXMSW__ -I../src/regex -I../src/expat/lib -DwxUSE_GUI=0
>> -DwxUSE_BASE=1 -D__WXDEBUG__
>> -I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.
>> 8 -I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0
>> ../src/common/fs_arc.cpp
>> ../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
>> `wxArchiveEntry' with no type
> 
> Fixed these in SVN.

Thanks I downloaded the svn version for this file and starting
again the compilation. I have another error:
/c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o corelib_imagjpeg.o  -D__WXMSW__ 
     -I../src/regex -I../src/expat/lib -DwxUSE_BASE=0 -D__WXDEBUG__ 
-I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.8 
-I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0 
../src/common/imagjpeg.cpp
../src/common/imagjpeg.cpp:45:25: jpeglib.h: No such file or directory
../src/common/imagjpeg.cpp:95: error: field `pub' has incomplete type
../src/common/imagjpeg.cpp:97: error: ISO C++ forbids declaration of `JOCTET' 
with no type
../src/common/imagjpeg.cpp:97: error: expected `;' before '*' token
../src/common/imagjpeg.cpp:103: error: expected constructor, destructor, or type 
conversion before "wx_init_source"


Here is the result of the configure:
Configured wxWidgets 2.8.7 for `i686-pc-mingw32'

   Which GUI toolkit should wxWidgets use?                 msw
   Should wxWidgets be compiled into single library?       no
   Should wxWidgets be compiled in debug mode?             yes
   Should wxWidgets be linked as a shared library?         no
   Should wxWidgets be compiled in Unicode mode?           yes
   What level of wxWidgets compatibility should be enabled?
                                        wxWidgets 2.4      no
                                        wxWidgets 2.6      yes
   Which libraries should wxWidgets use?
                                        jpeg               sys
                                        png                sys
                                        regex              builtin
                                        tiff               sys
                                        zlib               no
                                        odbc               no
                                        expat              builtin
                                        libmspack          no
                                        sdl                no


Did I miss something else ?
-- 
Didier BRETIN
http://www.bretin.net/




More information about the wx-users mailing list