LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 12: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, 01:06 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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
sheka&teka
LQ Newbie
 
Registered: Sep 2003
Distribution: mandrake
Posts: 12

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration