Mail Archives: djgpp/2000/09/07/10:15:35
>Hello,
>
>when a build my C app with gcc2952, i receive this error message :
>
>poly1.c: In function `main':
>poly1.c:87: warning: return type of `main' is not `int'
According to the C Standard, main can be either:
int main(void);
-or-
int main(int argc, char *argv[]);
void main(void) is ILLEGAL! Some compilers also allow:
int main(int argc, char *argv[], char *env);
Or something like that, but that is considered an implementation extention and
is not portable.
>poly1.c:240: Invalid `asm' statement:
>poly1.c:240: fixed or forbidden register 2 (cx) was spilled for class CREG.
>poly1.c:319: Invalid `asm' statement:
>poly1.c:319: fixed or forbidden register 2 (cx) was spilled for class CREG.
>
>but when i build it with an old gcc version (281), it works correctly.
>
>Is there anyone who know this problem ? bug ?
Don't know about this one. See Damian and Eli's responses.
--
AndrewJ
- Raw text -