PDA

View Full Version : Recommend linux c++ compilers here please!



applescruff
01-24-2005, 10:25 PM
Does anyone know of a decent compiler for linux that I can download for free? I would prefer if it had an IDE and an option to run console applications as well (if these things are standard, sorry, I'm new to the art); perhaps something similar to the Dev C++ from Bloodshed, which I would be using, had my window$ machine not crashed. Also if you could include a URL that would be sweet.
Thanks!

Salem
01-25-2005, 02:53 AM
Well the compiler is gcc - which any reasonable Linux distro should already have.

As for an IDE, well there are a number to choose from. So far, I've only experimented with KDE.

Scribbler
01-25-2005, 03:21 AM
As was mentioned, GCC is usually packaged with any linux distro.

As far as IDE's that's kinda loaded since there aren't any really good IDE's. The closest you'll get to a reliable IDE would be KDevelop if you're using the KDE desktop, or Anjuta which is a GTK/Gnome app. While both of those IDE's are functional for the most part, there are a lot of features that could use some improvement, and they tend to push using Autotools on you for building projects (which work, but until you really learn to use them, can be really annoying).

There are many text editors useful for coding. Kate for KDE (which is also the default editor used in KDevelop), JEdit which is a Java application and is very nice as far as a programmer's editor, and of course there is always Emacs.

kermit
01-25-2005, 05:10 AM
As far as IDE's that's kinda loaded since there aren't any really good IDE's.

That is a matter of opinion, to be sure. Some would say that emacs is a good IDE.

At any rate, @ the original poster, look into using the make utility. If your project is big, you will learn to like it a lot. I can reccommend Emacs for sure. Others swear by vi, and of course there is the golden oldie, ed. ;)

FillYourBrain
01-25-2005, 08:09 AM
as previous posters have said, gcc (g++) should be on your system. If it isn't, just pop the install disk back in and add it. If you aren't comfortable with vi, there should be text editors on your system as well. Gotta tell you though, getting the hang of vi makes you more valuable. You can reasonably be expected to be able to work on any available system if you can handle vi (even available for windows command prompt).

Perspective
01-25-2005, 09:27 AM
www.eclipse.org
www.eclipse.org/cdt

publikum
01-25-2005, 09:28 AM
Compiler: gcc-c++ (g++)
IDE: KDevelop, vi (vi is really basic)

applescruff
01-25-2005, 04:51 PM
Thanks so much! I had heard about g++ but I'm very new to Linux so I didnt exactly know what to look for. This helps me a lot! :D

Kleid-0
01-25-2005, 06:35 PM
Kate for KDE (which is also the default editor used in KDevelop)... I LOVE Kate! Kate the program. What I usually do for speed is edit the program in the text editor Kate & then with me console I type in something like:

~/ g++ mySource.cpp -Wall An executable gets formed called a.out. I run it by going:

~/ ./a.out It's pretty fast and decent! Think of it as a starter kit, and then when maturity comes and you're writing huge programs, move onto an IDE when needed (like KDevelop, Anjuta, etc). I don't consider Kate as an Integrated Development Environment, even though it has autobraces, highlighting, and easy-tab.

If you want to know the hottest software for Linux, check this place out:
Linux Members Choice Awards @ LinuxQuestions.com
http://www.linuxquestions.org/questions/forumdisplay.php?s=&forumid=62

edugarcia
01-26-2005, 09:49 AM
Come on! This guy is asking for a decent graphical IDE so don't be too pretencious to answer him just to use vi + gcc + make (that I use when working on a terminal session). I think we still need a great development tool for Linux that includes the editor, IDE to the gcc compiler and debugger in just one application. I think it's unfair we can use Visual C++ or Borland C++ Builder for programming under Windows (I think both are good piece of code) but still don't have something just "similar" to them in Linux. I hope someone will develope it soon! (maybe me... uhm... :rolleyes: )

I think that we had Codewarrior in the place where I worked before for developing for PS2, but can't be sure (I wasn't developing for that platform). Anyone has used Codewarrior for Linux? Is it good?

Answering your question: right know what I find most friendly is KDev just for editing, gcc+make for compiling and ddd for debugging. I hope it helps.

Perspective
01-26-2005, 09:58 AM
>> but still don't have something just "similar" to them in Linux.

did you not see my post?

Scribbler
01-26-2005, 10:20 AM
I think we still need a great development tool for Linux that includes the editor, IDE to the gcc compiler and debugger in just one application....<snip>... I hope someone will develope it soon!
I've been hearing hype that anjuta 2.0 is supposed to address a lot of issues (however from what I can see of it, it mainly just restructures the same setup into a new architecture).

I found This thread (http://www.gamedev.net/community/forums/topic.asp?topic_id=292399) which is kinda interesting. The OP is working on an IDE, it takes the message thread a while before he discusses and discloses the work he's doing on a new IDE. The message itself starts out as a related topic but migrates.

FillYourBrain
01-26-2005, 10:42 AM
Come on! This guy is asking for a decent graphical IDE so don't be too pretencious to answer him just to use vi + gcc + make (that I use when working on a terminal session).
woah.
Easy big fella. It isn't pretenciousness that prompted that vi talk. Professional coders on *nix use it. It is expected that you use it if you want to get a job in that area. There are IDEs that are very good out there. Kdevelop, Anjuta, forte, code warrior etc.. but you most likely will NOT have those available to you when you start a job programming on *nix. vi is everywhere. If you can't use it you will come across as pathetic.

vi is a very good editor by the way. It's not just some primative thing that hard core "pretencious" jack-asses cling to to prove their geekdom. It is much faster to work with when you get good at it than any IDE available.

edugarcia
01-26-2005, 12:46 PM
I didn't want to argue about vi. So please delete the "pretencious" word from my post, and forgive me if someone got offended. What I meant is that applescruft is asking for a graphical IDE to code in Linux (either at home either at his job where they have graphical distr. of *NIX). I don't think he wants a "vi vs graphical editors" (that I guess would be useless for him) discussion but just getting a graphical editor for coding.

I haven't tried eclipse yet, but if you say it's worthy, I'll try.



There are IDEs that are very good out there. Kdevelop, Anjuta, forte, code warrior etc.. but you most likely will NOT have those available to you when you start a job programming on *nix. vi is everywhere. If you can't use it you will come across as pathetic.

Well I don't think that you can't find anything but vi in the businees world, and nobody will think you are pathetic for using XWindows and a visual editor if available. Still my opinion.

edugarcia
01-26-2005, 01:43 PM
Scribbler: GREAT thread that one in GDev. Besides the "political" issue about the GPL, that IDE seems great (let's wait him to finish it).

http://members.gamedev.net/yann/stuff/shot8.png


Still, I'm glad to hear that many people agree about the need for a better IDE for developing under Linux.

Kleid-0
01-26-2005, 05:16 PM
http://members.gamedev.net/yann/stuff/shot8.png I don't know, I'm starting get racist about IDE's. If you aren't dealing with anymore than 4 decent sized files in programming, then IDE's are just a waste of time! You just need freakin' notepad, borland's free command line compiler (gcc/g++ for Linux), and beer.

Bill Cosby
02-19-2005, 09:41 AM
Borland C/C++BuilderX is a very nice and powerfull IDE, and it's free for personal use
http://www.borland.com/cbuilderx/