LinuxQuestions.org
Visit Jeremy's Blog.
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 04-02-2003, 04:42 AM   #1
FireWolf
Member
 
Registered: Dec 2002
Posts: 36

Rep: Reputation: 15
Question C++ on redhat 8.0


Greetings

I have am trying to learn c++ and other programing programs however I started on windows but now I would like to use linux redhat 8.0. However I cant seem to finde the program to run c++.
On windows it was a all in one program. I have installed everything that was related to programing on linux when I installed it. so it there some where where is it and is it all in one or do wright the text in a text program then compile it (note I have not found a compiler under programing tab)

also what is vi and Emacs I have them both but the book that i have that talks about them is not very clear

Thank you all
 
Old 04-02-2003, 05:20 AM   #2
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
vi and emacs are just text editors, i personally dont like them but they are supposedly great when you get used to them.

anyway, as for a C++ compiler, its called gcc, and, no, you dont have to pay for it
 
Old 04-02-2003, 06:36 AM   #3
GtkUser
Member
 
Registered: Sep 2002
Location: Canada
Distribution: Redhat 9.0
Posts: 637

Rep: Reputation: 30
Write a C++ program in any text editor, than open the Gnome terminal and type:

g++ filename.cpp
./a.out

Code:
#include<iostream>

using std::cout;
using std::endl;

int main() {
  cout << "Hello World" << endl;
  return 0;
}
Make sure to include the end line manipulator or else you will not see any output in the console because it will be hidden by the prompt.
 
Old 04-02-2003, 12:04 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
what you used in windows is called a ide integrated development enviroment there are ide under linux 2 major ones for gnome anjuta and for kde it is kdevelop.
both are as good as mvc.
c++ compiler is g++
 
Old 04-02-2003, 12:24 PM   #5
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
Can I use anjuta in KDE? kdevelop if I prefer Gnome?

What is mvc?
 
Old 04-02-2003, 12:37 PM   #6
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 have liblarys installed yes i use anjuta in fluxbox.
mvc->microsoft visual c++
 
Old 04-02-2003, 01:13 PM   #7
FireWolf
Member
 
Registered: Dec 2002
Posts: 36

Original Poster
Rep: Reputation: 15
Ok got it thanks all
 
Old 04-02-2003, 01:50 PM   #8
Dave Skywatcher
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 127

Rep: Reputation: 16
You could also try Kylix by Borland. It's a great C++ (and Delphi) IDE that is free for non-commercial use. It's not specific to any particular desktop environment. http://www.borland.com/kylix/
 
  


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
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Enterprise 3 08-13-2005 12:28 PM
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Software 3 08-12-2005 10:18 AM
display horizantly shifted for redhat 9.0, redhat enterprise and fedora core dudely Linux - Newbie 1 08-11-2005 04:11 PM
redhat-config-packages error (thinks it is redhat and not fedora) qwijibow Fedora 3 12-17-2003 08:59 PM
installing samba-3.0alpha24-1.i386.rpm into RedHat 8 and RedHat 9 Linh Linux - Newbie 2 06-04-2003 05:50 AM

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

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