LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2002, 01:30 AM   #1
Suspect
Member
 
Registered: May 2002
Posts: 31

Rep: Reputation: 15
c++ compiler where?


I would like to know how I could bring out g++ on mandrake or
which folder to find it? I know i have it because when I type man g++, it gives me a list but doesn't really tell me where it is.


ok i think i'm asking the wrong question. How do i get started on c++?

Last edited by Suspect; 09-15-2002 at 01:39 AM.
 
Old 09-15-2002, 01:45 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
http://www.tldp.org/HOWTO/C++Programming-HOWTO.html

Is this what you mean? Do you want to get started learning how to program using C++? You should get a book and use it as a companion as well. I know NOTHING about programming, but this would make some sense.

If you are wondering as to where the location of something is on your linux box, try the 'whereis' command. If still no luck, try find or locate.

Cool
 
Old 09-15-2002, 03:39 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you don't need to know where g++ or gcc are on your system, you just use them.... and naturally they are not a gui tool you uinderstand... just from a command line. maybe you're after an IDE such as Anjuta, Gide or Kdevelop?
 
Old 09-15-2002, 11:42 AM   #4
Suspect
Member
 
Registered: May 2002
Posts: 31

Original Poster
Rep: Reputation: 15
how do i get started? where do i practise? where do i put the codes?
I read on different site that i can just use emacs, is it true?
 
Old 09-15-2002, 04:56 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
emacs is a text editor.
you write code as text.
so logically yes you can use emacs.
 
Old 09-15-2002, 10:13 PM   #6
int0x80
Member
 
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310

Rep: Reputation: 31
if you want to find out where the executable of an application is located, use the which command. let's say you needed to find the path for perl. from the prompt you would type:

which perl
 
Old 09-16-2002, 07:47 AM   #7
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,545

Rep: Reputation: 136Reputation: 136
if u want to get started with c++ programming itīs a good idea to get yourself a book. there are thousands...
good luck,
jens
 
Old 09-17-2002, 07:30 AM   #8
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
you can use vi to create the program. or use gedit or whatever.

say you name the cpp program fred.cpp
from command line type:


g++ fred.cpp -o fred

then from command line type:

./fred

this will run the fred program
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
C++ IDE+Compiler?Java IDE+compiler? Boby Linux - Software 3 05-31-2005 01:12 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
No compiler to compiler the compliler NewtonIX Linux - Newbie 13 11-03-2003 05:32 AM
compile a compiler without a compiler? lackluster Linux - General 18 01-02-2003 07:55 PM


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