This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: w32api: incompatible with gcc-4.3


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/


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