Results 1 to 10 of 16
Hi
Just joined this great forum and my first question is for the C++ nas C# programers.
What is the best available compiler for C++ on linux plarforms. What do ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-08-2005 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 5
Best compiler
Hi
Just joined this great forum and my first question is for the C++ nas C# programers.
What is the best available compiler for C++ on linux plarforms. What do u guys use and prefer?
Thanx for help.
- 07-08-2005 #2Linux User
- Join Date
- May 2005
- Posts
- 473
move this topic to... oh...Linux Programming & Scripting
- 07-08-2005 #3Linux User
- Join Date
- Nov 2003
- Location
- Brooklyn, NY
- Posts
- 347
GCC.
- 07-08-2005 #4
GCC is included to nearly all distros and is used to compile nearly all software you use.
- 07-08-2005 #5Done.
Originally Posted by a12ctic
And I also recommend using GCC/G++/GCJ. They come with just about every Linux distribution and they work just fine. They're also ANSI standards compliant, so your code should be portable to other X86 operating systems, if you're even worried about that. Haha.
Registered Linux user #270181
TechieMoe's Tech Rants
- 07-08-2005 #6
If you're really concerned with preformance you can use the Intel C++ compiler, it does not work with every program or processor but sometimes you can get a little preformance boost. Personally I think the preformance boost is insignificant so I use GCC.
- 07-08-2005 #7
Just a note on the 'current' gcc.
As a bleeding edger, I am quick to want to jump on the 4.0 release (especialy with all the talk about an optimized optimizing archetecture) but keep in mind that in in its current state, all that optimizing archetecture is more the framework for a truly blazing complier in a year or so. right now, 4.0 will probably take a little performance hit. In short, if you are developing, it might be fun to try, but for your distrobution binaries, its probably better to stick with the 3.* series for a good while.
- 07-10-2005 #8Just Joined!
- Join Date
- Jun 2005
- Posts
- 5
thanx for help guys. I am trying to compile my C++ program - a program that only prints Hello World on the screen - but i get errors.
there are no errors in the program , as i copied it letter for letter. I selected the installation of gcc when i was installing Red Hat.
DO i need to do anythng else before i start compiling?
- 07-10-2005 #9What were the errors you got?
Originally Posted by Mr.Smith
it should work with:
That should compile & link. then just typeCode:gcc hello.c -o hello
(whatever the name of your program is)Code:./hello
PTL x10 Hallelujah!
AMD Athlon XP 2600+ 512MB RAM Dual 80G WD HD 8MB Cache (1 WinXP Home, 1 CentOS 4.2) GeForce Ti4200 128MB SB Live! 5.1
Registered Linux user #391521
- 07-10-2005 #10
I have never compiled a C++ prog with gcc its
Code:g++ -o myBinary mySource.cpp


Reply With Quote
