GCC compiler errors

Thelis

Golden Master
Messages
5,410
Hey, I am using the GNU compiler and I am getting a crapload of errors.

Originial code:

Code:
 #include <stdio.h>

int main (void)
{ 

printf (“Programming is fun.\n”);

return 0;
}

Errors:
Code:
owner@ubuntu:~/Desktop$ gcc fa.c
fa.c:1: error: stray ‘\357' in program
fa.c:1: error: stray ‘\273' in program
fa.c:1: error: stray ‘\277' in program
fa.c:1: error: stray ‘#' in program
fa.c:1: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘<' token
fa.c:6: error: stray ‘\342' in program
fa.c:6: error: stray ‘\200' in program
fa.c:6: error: stray ‘\234' in program
fa.c:6: error: stray ‘\' in program
fa.c:6: error: stray ‘\342' in program
fa.c:6: error: stray ‘\200' in program
fa.c:6: error: stray ‘\235' in program

Anybody know what is wrong?
 
Yeah, the compiler is for C, and I am using C.

And yes, that is linux.
 
Update (sorry bout double post, but this will help):

What sort of character coding should I be using for the GCC compiler to work?
 
Back
Top Bottom