This is the mail archive of the cygwin@sourceware.cygnus.com 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]

gcc compiler output


Hi,

when compiling, gcc -c, the following source file 

--- prg.c ---
#include <stdio.h>

typedef struct in_st
{
	unsigned	i385:1;
	unsigned	i386:1;	/* <------- Parse error */
	unsigned	i387:1;

}in_t;

int main (void)
{
	printf("Hello, world\n");
}
--- end of prg.c ---

I get the following:
prg.c:6: parse error before `1'
prg.c:6: warning: no semicolon at end of struct or union
prg.c:7: parse error before `:'
prg.c:9: warning: data definition has no type or storage class

Replacing 'i386' with 'in386' solved the problem. It looks as if 'i386'
were a reserved compiler word. Is this so? Sorry if this is obvious but
I haven't got the gcc man pages.

Thanks in advance.

Oskar

+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
Oskar Berreteaga
I+D Software
Fagor Automation S. Coop
Tel.: 943 79 95 11 Ext.: 14-213
mailto: oskarb@fagorautomation.es
+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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