LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-16-2003, 11:24 PM   #1
(!~CoW~!)
Member
 
Registered: Nov 2003
Location: Ottawa, Ontario
Distribution: Slax 10.0
Posts: 56

Rep: Reputation: 15
C++ Compilers


does anyone know of any good C++ compilers for Linux?
 
Old 11-16-2003, 11:49 PM   #2
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Holy Cow! Are you serious? How about gcc.

Enjoy!
--- Cerbere
 
Old 11-17-2003, 01:30 AM   #3
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
You mean front end compilers right? Like visual C++ by microsoft?
Then you are looking for something like kdevelop
I won't give it praise but it does work.
If you just want something to write code in you can do that in kwrite or any text editor (emacs is nice but is said to be a bit harder to use....never tried myself) and save it as .cpp (or .c if you are compiling C) and compile it from the command line with gcc(don't know what follows it, help should tell you.)

all in all you don't need anything other then a text editor and knowledge of how to use the gcc command to be able to compile programs in linux.
note: you already have gcc
 
Old 11-17-2003, 10:12 AM   #4
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
g++
 
Old 11-17-2003, 10:35 AM   #5
narendra_i
LQ Newbie
 
Registered: Sep 2003
Location: hyderabad
Posts: 12

Rep: Reputation: 1
u can use g++
it has some things which irritates
we have to include <ctype.h> when using isalpha etc...
 
Old 11-17-2003, 11:44 AM   #6
odat
LQ Newbie
 
Registered: May 2001
Posts: 29

Rep: Reputation: 15
Hmm, the short answer is "gcc/g++" (that's the long
answer too...) But I think you are asking about
some IDE sort of thing (I've seen these on vs. MS
systems, but don't recall their name.)

If you're on linux, you already have good tools, you
just need an introductory book on how to use them.
editors (emacs or vi - I tend to use jstar yet)
sed and grep, and their kin in /bin

Don't know about the any "visual" type interfaces.
Read up on emacs, it has lots of cute tricks.
 
Old 11-17-2003, 12:27 PM   #7
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You can get started in no time with gcc/g++ - for example

Save your C++ source code in an ordinary text file with a .C extension (capital C) - for example:

sourcefile.C

Then compile it with:

g++ path_to_sourcefile.C -o executable_file

An executable is now created in your current working directory - you can check your current working directory with pwd.

Finally - to run the program just type (depending on where you are etc)

executable_file

or

./executable_file

Later on - you can always move this executable into one of the directories listed in your PATH.

Last edited by Skyline; 11-17-2003 at 12:29 PM.
 
Old 11-17-2003, 01:34 PM   #8
EatNums
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Assuming you're on an ix86-Box and you're looking for speed the answer is probably Intel icc/icpc.
It should still be for free for Linux, visit
http://www.intel.com/software/produc...lin/noncom.htm
 
Old 11-17-2003, 01:49 PM   #9
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Try using gcc/g++/c++/cpp those are all the same, but have different settings.
The last 3 are just different setups of gcc. These are always present on your system.

If you want an IDE there is kdevelop which is very nice
There's.. Anjuta and of course emacs. You'll have to install these ones
 
Old 11-17-2003, 02:22 PM   #10
(!~CoW~!)
Member
 
Registered: Nov 2003
Location: Ottawa, Ontario
Distribution: Slax 10.0
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by EatNums
Assuming you're on an ix86-Box and you're looking for speed the answer is probably Intel icc/icpc.
It should still be for free for Linux, visit
http://www.intel.com/software/produc...lin/noncom.htm
well its only a 30 day trial version, but ill check it out...
 
Old 11-17-2003, 02:30 PM   #11
EatNums
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Quote:
Originally posted by (!~CoW~!)
well its only a 30 day trial version, but ill check it out...
Yes, you _could_ download the 30 day trial version, but I'd choose the Non-Commercial Unsupported Version....
 
Old 11-17-2003, 09:24 PM   #12
(!~CoW~!)
Member
 
Registered: Nov 2003
Location: Ottawa, Ontario
Distribution: Slax 10.0
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by EatNums
Yes, you _could_ download the 30 day trial version, but I'd choose the Non-Commercial Unsupported Version....
as far as i can tell that one says WINDOWS ONLY in big letters all around it.
 
Old 11-18-2003, 09:52 AM   #13
EatNums
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
I sense some trollishness in you.....
I quote from the original link:

"This page provides a download copy of the Intel® C++ Compiler 7.1 for Linux* for non-commercial purposes. The non-commercial license includes access to the Intel® self-help support repository, the Compiler User Forums, and issue submission to Intel® Premier Support...."

And as far as I can see NonCom-Versions are available _only_ for Linux.
If you still don't see what I mean, maybe your browser is fooling you.
 
  


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
getting started on compilers arunswarup Programming 5 10-24-2005 09:30 PM
Compilers lramos85 Programming 4 10-03-2004 01:50 PM
gcc compilers talkinggoat Linux - General 4 02-17-2004 04:36 PM
Compilers... ChaosZ3RO Linux - Software 1 09-15-2003 06:08 PM
CD with many compilers...Are there any? Colonel Panic Programming 5 10-16-2001 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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