LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-20-2003, 02:26 AM   #1
sceadu
Member
 
Registered: Jan 2003
Posts: 76

Rep: Reputation: 15
Is C++ compiler found in RH Linux 8?


Hi,
I'm intending to install Qt in my RH Linux 8 desktop.
However, I'm not sure if there is already a C++ compiler in RH Linux 8?
Where can I find that?
 
Old 03-20-2003, 02:40 AM   #2
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Sure there is... if you installed the development packages. It's called g++. Try typing g++ from the command line or typing whereis g++.

Have Fun
 
Old 03-20-2003, 03:07 PM   #3
viciousfish
Member
 
Registered: Jun 2002
Location: UK
Distribution: Debian Sarge, Gentoo
Posts: 70

Rep: Reputation: 15
It's an extra bit of the standard GCC compiler.
 
Old 03-20-2003, 05:38 PM   #4
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
if u dont have it you can download it from rhn or install it from the cds
 
Old 03-20-2003, 08:43 PM   #5
sceadu
Member
 
Registered: Jan 2003
Posts: 76

Original Poster
Rep: Reputation: 15
Hi,
I cannot find the g++ compiler.
Ok, I admit I more familiar with MS windows.

By installing Qt, I can get a c++ compiler quite similar to MS Visual C++?
 
Old 03-20-2003, 11:00 PM   #6
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
Hmm.. stick the Red Hat install CD's in and run the redhat-config-packages program. Install the development tools and you'll have the g++ compiler. When you say installing Qt will give you a compiler similar to Visual C++, do you mean an IDE similar to Visual C++??
 
Old 03-20-2003, 11:06 PM   #7
sceadu
Member
 
Registered: Jan 2003
Posts: 76

Original Poster
Rep: Reputation: 15
Hi,
I have not yet install Qt, just wondering how it will look like, compared to MS Visual C++

I have selected the install everything option for the RH Linux 8, but I can't find the g++ compiler, where can I look for it?
 
Old 03-20-2003, 11:58 PM   #8
rmartine
Member
 
Registered: Dec 2002
Location: San Luis Obispo, CA
Distribution: Fedora Core 3
Posts: 618

Rep: Reputation: 30
/usr/bin/g++ It's a command line compiler.
 
Old 03-21-2003, 12:33 AM   #9
maildhanraj
LQ Newbie
 
Registered: Sep 2002
Location: pune
Distribution: Rh7.2
Posts: 12

Rep: Reputation: 0
hey all,
just write a c/c++ code in your fav. editor (mine is vi/vim) and save the file and go to that file from command file by changing the dir. then type gcc filename.c outputfilename press enter
by the output on the command promt u will find that u have a compiler or not . or do one thing type
# find / -name gc*.*
here if u find gcc then u will have the compiler
dhanraj sheth
linuxdhanraj.tripod.com
 
Old 03-21-2003, 09:44 AM   #10
tsitras
Member
 
Registered: Mar 2003
Distribution: Debian Squeeze
Posts: 182

Rep: Reputation: 30
the compiler comes as a standard when you install the development package. it called gcc.type "gcc help" in the comand prompt and see what it says
 
Old 03-21-2003, 04:21 PM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by sceadu
Hi,
I cannot find the g++ compiler.
Ok, I admit I more familiar with MS windows.

By installing Qt, I can get a c++ compiler quite similar to MS Visual C++?
Qt is not a compiler. It's a library. With the library comes QT Designer, a programs that allows to make GUI for your program easily (you just draw it) and make the code from it. But to compile your program, you'll need gcc/g++. It's command line compiler.

There are also graphical IDEs (they use gcc/g++). Examples: Anjuta, KDevelop. They should be both on your installation cds.
 
Old 03-21-2003, 08:48 PM   #12
sceadu
Member
 
Registered: Jan 2003
Posts: 76

Original Poster
Rep: Reputation: 15
Tks dudes...

Ok, so I can write the codes with Qt, design the GUI with Qt designer and compile the codes using g++ or Kdevelop.

Am I right?
 
Old 03-21-2003, 09:45 PM   #13
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
you are close.

kdevelop is an Integrated Development Environment which means that is is a program that will call the editor, g++, run your test, call the debugger etc.
 
Old 03-22-2003, 02:35 PM   #14
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
KDevelop can run QT Designer when you need it (option in the menu).

BTW Make sure you have QT tutorials installed. They're good and nice examples are provided.
 
Old 03-23-2003, 10:40 AM   #15
twolf
LQ Newbie
 
Registered: Mar 2003
Location: CZ/USA
Posts: 24

Rep: Reputation: 15
as far as I know

non gui compiler is gcc. You can learn a lot out of it's man pages <man gcc>. You have to specify for which C language you are compiling, BUT if you name your files well, it will know. Ie. "file.c" it knows that it is a regullar C. Let me remember the extension of C++.
ehm :-)
I believe it might be this one:

*.cpp

but if it doesn't work try: *.cp; *.c++; *.c+

and a simple line command:

gcc -o output_file your_file.cpp <enter>

that should give you what you need...

Other than that -- I have no idea ;-)

Good luck - Tomas
 
  


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
no acceptable C compiler found jesusphreak Linux - Software 4 04-07-2005 08:50 PM
no acceptable C compiler found OsirisX Linux - Software 1 02-10-2005 08:06 PM
no acceptable C compiler found... altair401 Linux - Newbie 1 09-29-2004 11:54 PM
no acceptable C compiler found ioannisss Linux - Newbie 5 08-27-2004 11:59 AM
Looking for C++ compiler... none found! klod Debian 3 08-26-2003 07:10 AM

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

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