This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems building build-gdb20001125-1 on winnt (cygwin)


On Tue, Apr 03, 2001 at 04:57:05PM +0000, Mack Lobell wrote:
>In regards to my last question (Ref. 
>F13626yJKs8TAGUjGnA0000804b@hotmail.com). I downloaded two versions from the 
>GDB webpage, GDB 5.0 and GDB+Insigth5.0. The pure GDB 5.0 (without Insight) 
>compiles and works under cygwin, no problems. When i compile Insight i get 
>the same problem as with build-gdb20001125-1.
>
>The binary version of build-gdb20001125-1 works, and the help says version 
>5.0, so someone must have been able to build?
>
>Anyway, the problem lies in the following code:
>#ifndef VOID
>#define VOID void
>typedef char CHAR;
>typedef short SHORT;
>typedef long LONG;
>#endif
>typedef CHAR CCHAR;
>typedef unsigned char UCHAR,*PUCHAR;
>typedef unsigned short USHORT,*PUSHORT;
>typedef unsigned long ULONG,*PULONG;
>typedef char *PSZ;
>
>Somehow VOID hasn't been defined, hence compiler error when trying to use 
>CHAR, SHORT and LONG.
>
>Where should VOID be defined?
>
>I think i'll wait for the patches, maybe i'll try the "CC='gcc -mwin32' " 
>tip.

CC='gcc -mwin32' should fix this.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]