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 06-13-2004, 10:19 PM   #1
karfei00
Member
 
Registered: May 2004
Posts: 54

Rep: Reputation: 15
need help on configuration of c++ in redhat


i cant get c++ worked in my redhat 9 kernel 2.4.26, initially it was able to compile but after i installed and uninstalled something(i forgot what i did), the c++ compiler seems like not working, but i am very sure that the c++ package is installed.

# ./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for c++... c++
checking whether the C++ compiler (c++ ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

may i know how to configure and get the c++ comiler to work? thanks a lot
 
Old 06-14-2004, 02:37 PM   #2
jcspray
Member
 
Registered: Mar 2004
Location: York, UK
Distribution: Ubuntu
Posts: 132

Rep: Reputation: 15
So what happens if you try to compile a simple program?

Create a file test.c containing
Code:
#include <iostream>

int main()
{
std::cout << "Hello World\n";
return 0;
}
And then executing it with "g++ test.c"
 
Old 06-14-2004, 10:09 PM   #3
karfei00
Member
 
Registered: May 2004
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jcspray
So what happens if you try to compile a simple program?

Create a file test.c containing
Code:
#include <iostream>

int main()
{
std::cout << "Hello World\n";
return 0;
}
And then executing it with "g++ test.c"
able to compile this...but not for ./configure scripts
 
  


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
RedHat 8.0: Sis900 Configuration The Wall Linux - Newbie 5 09-21-2003 12:53 PM
VS-FTPD Configuration on Redhat 9 ctejas Linux - Networking 2 06-20-2003 09:28 PM
SWAT Configuration on Redhat 8.0 malomairy Linux - Software 1 05-16-2003 07:23 PM
Configuration of Network w/ Redhat 8.0 billiam2003 Linux - Software 7 03-27-2003 01:56 PM
redhat network configuration little_dan Linux - Networking 5 01-02-2003 08:16 PM


All times are GMT -5. The time now is 05:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration