|
From: Tatsuro M. <tma...@ya...> - 2011-08-24 22:20:38
|
Hello Thank you for the reply. --- On Thu, 2011/8/25, Ethan A Merritt wrote: > The only way I can see for that error message to make sense is if > HAVE_STRUCT_EXCEPTION_IN_MATH_H > is not defined. Is the setting in config/config.mgw correct? The default setting in config.mgw, HAVE_STRUCT_EXCEPTION_IN_MATH_H is not defined. For math.h for 32 bit gcc complier seems not to require HAVE_STRUCT_EXCEPTION_IN_MATH_H is defined. I have manually define HAVE_STRUCT_EXCEPTION_IN_MATH_H in config.mgw and tried compile again. ********************* x86_64-w64-mingw32-gcc -shared-libgcc -c -I/cygdrive/c/Programs/gplibs64/include -O3 -I. -I../../src -D_Windows -DHAVE_CONFIG_H -DPIPES -DWGP_CONSOLE -DUSE_MOUSE=1 -DWIN_IPC -DWITH_HTML_HELP -I/cygdrive/c/PROGRA~2/HELPWO~1/include -DHAVE_LIBGD -DHAVE_LIBPNG -DHAVE_GD_GIF -DGIF_ANIMATION -DHAVE_GD_PNG -DHAVE_GD_JPEG -DHAVE_GD_TTF -DHAVE_CAIROPDF -DHAVE_ICONV ../../src/internal.c ../../src/internal.c:63:13: warning: 'struct exception' declared inside parameter list ../../src/internal.c:63:13: warning: its scope is only this definition or declaration, which is probably not what you want ../../src/internal.c:63:1: error: conflicting types for '_matherr' /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179:23: note: previous declaration of '_matherr' was here make: *** [internal.o] Error 1 ********************************************************** The "error: conflicting types for '_matherr'" appeared. internal.c:63 62: int 63: GP_MATHERR( STRUCT_EXCEPTION_P_X ) /usr/x86_64-w64-mingw32/sys-root/mingw/include/math.h:179 177: #ifndef _CRT_MATHERR_DEFINED 178: #define _CRT_MATHERR_DEFINED 179: _CRTIMP int __cdecl _matherr (struct _exception *); 180: #endif Hmmm! What is wrong? Regards Tatsuro |