Winebuild build problems on Mingw

Steven Edwards steven_ed4153 at yahoo.com
Mon Nov 10 20:19:12 CST 2003


Hello,
I guess we want to use compiler exceptions on Mingw/Windows?

gcc -c -I. -I. -I../../include -I../../include    -Wall
-mpreferred-stack-bounda
ry=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith  -D_WIN32_IE=0x0501
-D_WIN32_
WINNT=0x0501 -DWINVER=0x0501 -o spec16.o spec16.c
In file included from spec16.c:31:
../../include/wine/exception.h:138: error: parse error before
"sigjmp_buf"
../../include/wine/exception.h:138: warning: no semicolon at end of
struct or un
ion
../../include/wine/exception.h:142: error: parse error before '}' token
../../include/wine/exception.h:142: warning: type defaults to `int' in
declarati
on of `__WINE_FRAME'
../../include/wine/exception.h:142: warning: data definition has no
type or stor
age class
make[1]: *** [spec16.o] Error 1
make[1]: Leaving directory `/e/source/winehq/wine/tools/winebuild'
make: *** [winebuild] Error 2

Here is my work-around

Index: exception.h
===================================================================
RCS file: /home/wine/wine/include/wine/exception.h,v
retrieving revision 1.25
diff -u -r1.25 exception.h
--- exception.h	24 Oct 2003 04:30:13 -0000	1.25
+++ exception.h	11 Nov 2003 02:17:56 -0000
@@ -65,7 +65,7 @@
  * This is only useful when compiling to a native Windows binary, as
the built-in
  * compiler exceptions will most certainly not work under Winelib.
  */
-#ifdef USE_COMPILER_EXCEPTIONS
+#if defined(USE_COMPILER_EXCEPTIONS) || defined(__MINGW32__)
 
 #define __TRY __try
 #define __EXCEPT(func) __except((func)(GetExceptionInformation()))

Thanks
Steven


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree



More information about the wine-devel mailing list