Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-18-2003, 12:41 PM   #1
LQ Newbie
Registered: Sep 2003
Distribution: mandrake
Posts: 12

Rep: Reputation: 0
gcc programming error ??

what is wrong here ?:

[epsilon@localhost epsilon]$ cat hello.c




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]$
Old 09-18-2003, 01:06 PM   #2
LQ Guru
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,877

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
For some reason the compiler is not recognizing your open and close parenthesis. This might be a problem with your keyboard mapping.
Old 09-18-2003, 01:06 PM   #3
LQ Newbie
Registered: Sep 2003
Distribution: mandrake
Posts: 12

Original Poster
Rep: Reputation: 0
found the problem. wrong keyboard settings.......


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 01:29 AM
C programming error recaicircir Linux - Newbie 2 05-08-2005 03:02 PM
2d graphic programming in gcc pippet Programming 8 07-09-2004 05:20 AM
graphics programming with gcc mamta_k Linux - Software 1 06-01-2004 07:28 AM
gcc programming gazza Linux - Newbie 3 02-13-2004 01:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration