[Bug 1225] unable to compile ole
Wine Bugs
wine-bugs at winehq.com
Sat Jun 28 10:20:37 CDT 2003
http://bugs.winehq.com/show_bug.cgi?id=1225
------- Additional Comments From z_god at wanadoo.nl 2003-28-06 10:20 -------
Bug comments restored from Gmane.org:
hello there,
i get a compile error with the latest cvs-wine version.
compiling with gcc-3.1 on libc-2.2.5:
make[1]: Entering directory `/morespace/hdc/dl/wine/wine/ole'
gcc -c -I. -I. -I../include -I../include -g -O2 -Wall
-mpreferred-stack-boundary=2 -gstabs+ -fPIC -D__WINESRC__ -D_REENTRANT
-o dx8guid.o dx8guid.c
In file included from dx8guid.c:26:
../include/winuser.h:2396: unnamed fields of type other than struct or
union are not allowed
../include/winuser.h:2409: unnamed fields of type other than struct or
union are not allowed
make[1]: *** [dx8guid.o] Error 1
make[1]: Leaving directory `/morespace/hdc/dl/wine/wine/ole'
------- Additional Comments From hughes2002 <at> btinternet.com 2003-01-15
07:36 -------
I can confirm the same error occurs with GCC 3.1 and glibc-2.2.4.
It is due to the nameless struct MONITORINFO which occurs in winuser.h.
A temporary hack is to define -DNONAMELESSSTRUCT in the ole/Makefile.
Doing this allows the compile to continue until it comes upon the next #include
of winuser.h. So far, I've found it occurs in tools/bin2res, tools/wrc,
dlls/d3d8 and dlls/d3dx8
and dlls/opengl32.
Defining NONAMELESSSTRUCT in the appropriate .c file that includes winuser.h
also solves the
problem on a smaller scale.
------- Additional Comments From marcus <at> jet.franken.de 2003-01-17 15:18
-------
confirmed.
I submitted a patch to fix the MONITORINFOEX structs.
The IDL structs are a bit weirder though.
------- Additional Comments From Steven_Ed4153 <at> yahoo.com 2003-03-17 12:20
-------
This bug can be closed. I had this same problem on Mingw untill Marcus submited
his patch.
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list