From: Danny S. <dan...@cl...> - 2002-12-15 08:59:21
|
----- Original Message ----- From: "Jeff Houck" <jh...@no...> To: "Danny Smith" <dan...@us...> Sent: Sunday, 15 December 2002 06:03 Subject: Re: [Mingw-users] mesa 3d compile > Greetings Danny, > Thanks for the quick reply. I upgraded the mingw gcc version to > 3.2.1 as per your suggestion > and tried a compile. Same problem. Hmm, I've seen so many problems related to __GTHREAD_HIDE_WIN32API that I tend to put the blame there automatically, but this time the blame lies elsewhere. After a closer look, the name conflict with Arc is due to w32api header defect, possibly due to these two defines in si-glu/incude/gluos.h #define NOGDI #define NOIME not being recognized by the mingw distro on w32api. There are other redefinition problems as well. This patch to windows.h might help: *** windows.h.orig Mon Oct 14 01:41:54 2002 --- windows.h Sun Dec 15 08:45:33 2002 *************** *** 47,54 **** #include <stdarg.h> #include <windef.h> #include <wincon.h> #include <winbase.h> ! #ifndef _WINGDI_H #include <wingdi.h> #endif #ifndef _WINUSER_H --- 47,55 ---- #include <stdarg.h> #include <windef.h> #include <wincon.h> + #include <basetyps.h> #include <winbase.h> ! #if !(defined NOGDI || defined _WINGDI_H) #include <wingdi.h> #endif #ifndef _WINUSER_H *************** *** 71,77 **** #endif #ifndef WIN32_LEAN_AND_MEAN - #include <commdlg.h> #include <cderr.h> #include <dde.h> #include <ddeml.h> --- 72,77 ---- *************** *** 83,89 **** --- 83,92 ---- #include <rpc.h> #include <shellapi.h> #include <winperf.h> + #ifndef NOGDI + #include <commdlg.h> #include <winspool.h> + #endif #if defined(Win32_Winsock) #warning "The Win32_Winsock macro name is deprecated.\ Please use __USE_W32_SOCKETS instead" *************** *** 103,113 **** --- 106,119 ---- #include <winsock.h> #endif /* (_WIN32_WINNT >= 0x0400) */ #endif + #ifndef NOGDI #if !defined (__OBJC__) #if __GNUC__ >= 3 /* what about Watcom? */ #include <ole2.h> #endif #endif /* __OBJC__ */ + #endif /* NOGDI */ + #endif /* WIN32_LEAN_AND_MEAN */ #endif /* RC_INVOKED */ > I'll try adding the #define directive next but frankly, I'm not sure > "where" I should add it. Any further assistance would be appreciated. > Thanks! > > BR, > Jeff > > Danny Smith wrote: > > >>> I seem to get two errors while compiling Mesa > >>> In file included from arcsorter.cc:47: > >>>arcsorter.h:54: `a' was not declared in this scope > >>> > >>> > > > >#define __GTHREAD_HIDE_WIN32API should get past this. > > > >Or update GCC to 3.2.1 > > > >Danny > > > > > > > > > > > > > > > > > |