Alright, so I've got this programming assignment in C that I've been working on using Pelles C, and everything's going swell so far, but in the end it needs to be running on the university's Unix system. So I try to compile on their Unix and suddenly I'm getting a pile of errors that didn't exist before.
So let's say I've got this as a main function:
#include <stdio.h>
int main (int argc, char* argv[]){
printf("Hello World");
int anInt;
return 0;
}
And I give a compile command...
cc main.c
I get this error:
"main.c", line 5: syntax error before or at: int
...is this one of those cases where there's a common example of a Unix command all over the internet but it's not actually the one you'd ever use? or is Pelles C "filling in the gaps" for me here? or is there just something off with that compiler, or what?