LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-18-2003, 01:41 PM   #1
sheka&teka
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

#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]$
 
Old 09-18-2003, 02:06 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
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, 02:06 PM   #3
sheka&teka
LQ Newbie
 
Registered: Sep 2003
Distribution: mandrake
Posts: 12

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


Reply


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 02:29 AM
C programming error recaicircir Linux - Newbie 2 05-08-2005 04:02 PM
2d graphic programming in gcc pippet Programming 8 07-09-2004 06:20 AM
graphics programming with gcc mamta_k Linux - Software 1 06-01-2004 08:28 AM
gcc programming gazza Linux - Newbie 3 02-13-2004 02:21 AM


All times are GMT -5. The time now is 08:17 AM.

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