LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc programming error ?? (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-programming-error-94221/)

sheka&teka 09-18-2003 12:41 PM

gcc programming error ??
 
what is wrong here ?:

[epsilon@localhost epsilon]$ cat hello.c

#include<stdio.h>

main()

{

printf(¨hello world¨);

}

[epsilon@localhost epsilon]$ gcc hello.c

hello.c: In function `main':

hello.c:4: stray '\250' in program

hello.c:4: `hello' undeclared (first use in this function)

hello.c:4: (Each undeclared identifier is reported only once

hello.c:4: for each function it appears in.)

hello.c:4: parse error before "world"

hello.c:4: stray '\250' in program

[epsilon@localhost epsilon]$

jailbait 09-18-2003 01:06 PM

For some reason the compiler is not recognizing your open and close parenthesis. This might be a problem with your keyboard mapping.

sheka&teka 09-18-2003 01:06 PM

found the problem. wrong keyboard settings.......
thanks!


All times are GMT -5. The time now is 02:52 PM.