w32api: incompatible with gcc-4.3

Dave Korn dave.korn.cygwin@googlemail.com
Fri Mar 13 04:40:00 GMT 2009


Yaakov (Cygwin/X) wrote:

> Trying to compile XWin with cygwin-1.7.0-43, gcc-4.3.2-2 and w32api-3.13-1:
> 
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/../../../../include/w32api/winspool.h:255:
> error: two or more data types in declaration specifiers

> Each of those lines read "DWORD Status;".

  rofl.  Not after preprocessing they don't:

typedef struct _JOB_INFO_1A {
 DWORD JobId;
 LPSTR pPrinterName;
 LPSTR pMachineName;
 LPSTR pUserName;
 LPSTR pDocument;
 LPSTR pDatatype;
 LPSTR pStatus;
 DWORD int;
^^^^^^^^^^^^ !
 DWORD Priority;
 DWORD Position;
 DWORD TotalPages;
 DWORD PagesPrinted;
 SYSTEMTIME Submitted;
} JOB_INFO_1A,*PJOB_INFO_1A,*LPJOB_INFO_1A;


  Somewhere, someone has typed "#define Status int".  You might try building
the pre-processed source again with something like "-dD" to see where it's
coming from.

    cheers,
      DaveK


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list