Help answer threads with 0 replies.
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 02-28-2003, 07:40 PM   #1
LQ Newbie
Registered: Feb 2003
Distribution: Redhat 8
Posts: 5

Rep: Reputation: 0
Unhappy RedHat 8 and gcc3.2-7

i have a problem, i recently installed redhat 8 and i was testing the g++ compiler, i used the basic hello world program,

#include <iostream>

int main()
std::cout << ¨Hello World¨ << std::endl;
return 0;

when i compile i get this error;

0.0.cpp: In function `int main()':
0.0.cpp:6: stray '\302' in program
0.0.cpp:6: stray '\250' in program
0.0.cpp:6: stray '\302' in program
0.0.cpp:6: stray '\250' in program
0.0.cpp:6: `Hello' undeclared (first use this function)
0.0.cpp:6: (Each undeclared identifier is reported only once for each function
it appears in.)
0.0.cpp:6: parse error before `<<' token

i believe it is not locating the header files which are in /usr/include/c++/3.2

can some one please help me resolve this problem

BTW: all development packages are installed

Last edited by necromancer; 02-28-2003 at 07:58 PM.


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
gcc3.3.1 manoj142 Linux - Software 3 10-21-2005 09:29 AM
has any one upgraded from gcc3.3.4 to gcc3.4.3? mojarron Slackware 2 03-20-2005 11:44 AM
help! how to install gcc3.3 on redhat 8.0 esigetel Red Hat 1 11-22-2004 08:37 AM
gcc3 and RH 8 hfawzy Linux - General 4 04-20-2003 04:04 PM
help to install gcc3.0.3 in redhat 8 alrawab Linux - Software 5 12-31-2002 01:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:36 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