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 07-01-2008, 06:33 AM   #1
sugantha
Member
 
Registered: Feb 2008
Distribution: Ubuntu 11.04 Natty Narwhal , Fedora Linux
Posts: 43

Rep: Reputation: 15
kdevelop error while compiling


Hello...I wanted to install kdevelop in my fedora 8 PC so I did "yum install kdevelop".It installed fine. When I tried to compile a simple program, it complained of missing g++ and gcc so I did "yum install gcc-c++" and made the PATH variable point to gcc34. Now when I try to compile the following program

Code:
#include <iostream>
using namespace std;
int main()
 {
   cout << "A";
   return 0;
 }
I get the following...

cd '/home/sugantha/Hello/debug/src' && WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" LC_MESSAGES="C" LC_CTYPE="C" gmake -k hello.lo
compiling hello.cpp (g++)
compiling hello.cpp (g++)
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/i386-redhat-linux/bits/c++config.h:43: error: expected constructor, destructor, or type conversion before 'namespace'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/i386-redhat-linux/bits/c++config.h:47: error: '__gnu_debug_def' is not a namespace-name
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/i386-redhat-linux/bits/c++config.h:47: error: expected namespace-name before ';' token
gmake: *** [hello.lo] Error 1
*** Exited with status: 2 ***

Can someone suggest what I should do to get over this...Am I supposed to configure something before trying to compile programs...Thanks in advance.

Last edited by sugantha; 07-01-2008 at 06:47 AM.
 
  


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
Compiling with Kdevelop 52cent Programming 7 04-23-2007 11:43 PM
problems compiling with Kdevelop blastradius Programming 1 10-29-2005 11:59 PM
compiling kdevelop merchtemeagle Linux - Software 2 03-16-2005 01:33 PM
compiling in kdevelop shyam_d_sundar Linux - Software 1 05-06-2004 04:11 AM
Parse error returned when compiling a source file with Kdevelop spilios Programming 1 09-09-2003 06:00 AM

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

All times are GMT -5. The time now is 06:11 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
Open Source Consulting | Domain Registration