LinuxQuestions.org
Help answer threads with 0 replies.
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 06-13-2004, 09: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, 01: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, 09: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



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

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

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