Platform is a older MSYS and GCC (3.1 something I think). I'm still getting settled in from getting tied-down so I cant test this on the latest mingw-current. only on dial-up here for now =(. Anyway any idea about this?
Thanks Steven
$ make gcc -c -I. -I. -I../include -I../include -DWINE_NOWINSOCK -Wall -mpreferred-sta ck-boundary=2 -gstabs+ -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: *** [dx8guid.o] Error 1
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
On January 10, 2003 07:53 pm, Steven Edwards wrote:
$ make gcc -c -I. -I. -I../include -I../include -DWINE_NOWINSOCK -Wall -mpreferred-sta ck-boundary=2 -gstabs+ -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: *** [dx8guid.o] Error 1
Yes, Try adding:
#define NONAMELESSUNION #define NONAMELESSSTRUCT
Before the windows includes in files where you get this error. Look in dlls/comctl32/comctl32undoc.c for an example.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Saturday 11 January 2003 01:53, Steven Edwards wrote:
Platform is a older MSYS and GCC (3.1 something I think). I'm still getting settled in from getting tied-down so I cant test this on the latest mingw-current. only on dial-up here for now =(. Anyway any idea about this?
Thanks Steven
$ make gcc -c -I. -I. -I../include -I../include -DWINE_NOWINSOCK -Wall -mpreferred-sta ck-boundary=2 -gstabs+ -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: *** [dx8guid.o] Error 1
it seems it don't like this:
typedef struct tagMONITORINFOEXA { MONITORINFO DUMMYSTRUCTNAME; CHAR szDevice[CCHDEVICENAME]; } MONITORINFOEXA, *LPMONITORINFOEXA;
who become (as unnamed is active):
typedef struct tagMONITORINFOEXA { MONITORINFO ; CHAR szDevice[CCHDEVICENAME]; } MONITORINFOEXA, *LPMONITORINFOEXA;
hmmmm it don't seems correct to me
and if i do: - -={$:'/cvs-src/winetest/dlls/d3d8'}=->grep DUMMYSTRUCTNAME ../../include/* ../../include/d3d8types.h: } DUMMYSTRUCTNAME; ../../include/dsdriver.h: } DUMMYSTRUCTNAME; ../../include/mmsystem.h: } DUMMYSTRUCTNAME; ../../include/mmsystem.h: } DUMMYSTRUCTNAME1; ../../include/mmsystem.h: } DUMMYSTRUCTNAME; ../../include/mmsystem.h: } DUMMYSTRUCTNAME1; ../../include/objidl.h: } DUMMYSTRUCTNAME; ../../include/winbase.h: } DUMMYSTRUCTNAME; ../../include/wingdi.h: } DUMMYSTRUCTNAME1; ../../include/wingdi.h: } DUMMYSTRUCTNAME1; ../../include/winnt.h:#define DUMMYSTRUCTNAME ../../include/winnt.h:#define DUMMYSTRUCTNAME1 ../../include/winnt.h:#define DUMMYSTRUCTNAME2 ../../include/winnt.h:#define DUMMYSTRUCTNAME3 ../../include/winnt.h:#define DUMMYSTRUCTNAME4 ../../include/winnt.h:#define DUMMYSTRUCTNAME5 ../../include/winnt.h:#define DUMMYSTRUCTNAME s ../../include/winnt.h:#define DUMMYSTRUCTNAME1 s1 ../../include/winnt.h:#define DUMMYSTRUCTNAME2 s2 ../../include/winnt.h:#define DUMMYSTRUCTNAME3 s3 ../../include/winnt.h:#define DUMMYSTRUCTNAME4 s4 ../../include/winnt.h:#define DUMMYSTRUCTNAME5 s5 ../../include/winnt.h: } DUMMYSTRUCTNAME1; ../../include/winnt.h: } DUMMYSTRUCTNAME2; ../../include/winnt.h: } DUMMYSTRUCTNAME3; ../../include/winnt.h: } DUMMYSTRUCTNAME; ../../include/winnt.h: } DUMMYSTRUCTNAME; ../../include/winuser.h: MONITORINFO DUMMYSTRUCTNAME; ../../include/winuser.h: MONITORINFO DUMMYSTRUCTNAME; ../../include/wtypes.h: } DUMMYSTRUCTNAME; ../../include/wtypes.idl:cpp_quote(" } DUMMYSTRUCTNAME;")
only 2 typedefed_struct DUMMYSTRUCTNAME; exists and they don't compile ...
Raphael
Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com