Skip to main content
GameDev.net gamedev.net
🔒 Locked

Other C++ Compilers?

Started by Xelen Jan 14, 2008 at 10:31 PM 9 replies 1.4k views
Original Post
Xelen
Xelen
Heya, I'm taking a Unix based class this semester more specifically though we're being taught using Fedora (I think core 6) Linux. What I was wondering is what compilers/IDE's everyone's using to program in C++ on their Linux builds. I ask since, I didn't see any compilers as far as I could tell that were installed on build even though I selected the development package when installing. Though maybe I just haven't looked in the right spot or hard enough yet. If there's already something on there hopefully I can find it or someone can tell me where more specifically to look when I go back to class Wednesday. I Googled and saw the Intel and GCC compilers, but I wanted to see what else was out there really before I was to go for GCC. This way I can program in class while people are catching up with the rest of us :) Plus it would be good to know whenever I have a chance to set up my own Linux (probably Ubuntu) machine in the future. Well I have to go for now, thanks in advance. Btw I put this in the lounge instead of the Unix forum since I don't think that the Unix one looked all that active and I would get more feedback from here, I hope that's ok.
hydroo
hydroo
If I were you I'd stick to gcc. Because you don't have to do anything but install the packages. It's free and good enough.

some more:
pathscale
pgi


It's ok to post into the unix forums. That there aren't much threads/posts doesn't mean that nobody reads.
Simian Man
Simian Man
I also suggest you stick with gcc. It is the de facto standard amongst Linux users. When you start installing libraries and other tools, they will generally be setup to work with gcc. If you ssh to a school machine, you can be sure gcc will be there. And it will most certainly be what is taught in your classes.
ApochPiQ
ApochPiQ
Definitely GCC. It's not just de facto Linux standard, it's pretty much de facto standard everywhere outside of Windows, at least as far as heavy-duty machines go. (Embedded environments are different, although from what I've seen it's not too uncommon to see a custom GCC back-end used for embedded work.)

There are other compilers out there - Intel's is good if you need to focus on highly performance-intensive code on Intel architectures, and Comeau is pretty much the gold standard for C++ standard compliance, although honestly I've never used it so I have no idea how it is for practical application.
jpetrie
jpetrie
I'd stick with gcc.
smart_idiot
smart_idiot
How to write, compile, and run a program in Linux:

Step 1:
echo -e "#include \nint main(){printf(\"Hello World\\\\n\");return 0;}"|gcc -xc -&&./a.out

Step 2:
???

Step 3:
Profit.

Alternate Method:



[Edited by - smart_idiot on January 15, 2008 12:37:50 PM]
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other
j_smith4
j_smith4
Your machine might have KDevelop on it which is an actual IDE and useful for larger projects which should use gcc. I never use the Gnome desktop so I'm not sure if its availabe there or not.

Either way usee gcc since its going to be what the TA uses to compile your programs.
--------Ratings - Serious internet buisness
curtmax_0
curtmax_0
I use Eclipse with CDT (C Development Tooling). Works great and the subclipse plugin makes it even better.

Oh, and Eclipse is just an IDE. I have gcc setup for compiling :P
Khaos Dragon
Khaos Dragon
The Sun C++ Compiler is pretty good. More often than not, it seems to compile faster code than gcc.
Xelen
Xelen
Thanks everyone looks like I will just be going with GCC then. Looks like it is the best option though setting it up is going to be a bit of learning fun :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.