Recommend linux c++ compilers here please!

This is a discussion on Recommend linux c++ compilers here please! within the Linux Programming forums, part of the Platform Specific Boards category; Does anyone know of a decent compiler for linux that I can download for free? I would prefer if it ...

  1. #1
    High school loser
    Join Date
    Dec 2004
    Posts
    27

    Recommend linux c++ compilers here please!

    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!
    "Confused by previous errors. Bailing out." --Bloodshed DevC++ compiler

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,821
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    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.

  4. #4
    ... kermit's Avatar
    Join Date
    Jan 2003
    Posts
    1,528
    Quote Originally Posted by Scribbler
    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.

  5. #5
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    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).
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

  7. #7
    Registered User
    Join Date
    Nov 2004
    Location
    Slovenia, Europe
    Posts
    115
    Compiler: gcc-c++ (g++)
    IDE: KDevelop, vi (vi is really basic)
    [C++]
    IDE: DevC++ 4.9.9.2 (GCC 3.4.2)
    2nd compiler: g++ (GCC 3.4.3/4.0.0)
    3rd compiler: Borland 5.5
    [C#]
    IDE: Microsoft Visual C# Express 2005
    2nd IDE: SharpDevelop
    2nd compiler: csc in Command Prompt
    .NET Framework: 2.0
    [PHP]
    Core: 5.1.0 beta 3
    IDE: PHPEdit
    2nd IDE: Notepad
    Favourite extensions: exif,gd2,mysql
    Favourite PEAR packages: DB, XML_RSS, ID3
    Favourite databases: SQLite, MySQL

  8. #8
    High school loser
    Join Date
    Dec 2004
    Posts
    27

    Talking

    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!
    "Confused by previous errors. Bailing out." --Bloodshed DevC++ compiler

  9. #9
    UT2004 Addict Kleid-0's Avatar
    Join Date
    Dec 2004
    Posts
    656
    Quote Originally Posted by Scribbler
    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:
    Code:
    ~/ g++ mySource.cpp -Wall
    An executable gets formed called a.out. I run it by going:
    Code:
    ~/ ./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/questi...?s=&forumid=62

  10. #10
    Registered User
    Join Date
    Sep 2004
    Posts
    13
    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... )

    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.

  11. #11
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    >> but still don't have something just "similar" to them in Linux.

    did you not see my post?

  12. #12
    Registered User Scribbler's Avatar
    Join Date
    Sep 2004
    Location
    Aurora CO
    Posts
    266
    Quote Originally Posted by edugarcia
    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 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.

  13. #13
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    Quote Originally Posted by edugarcia
    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.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  14. #14
    Registered User
    Join Date
    Sep 2004
    Posts
    13
    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.

  15. #15
    Registered User
    Join Date
    Sep 2004
    Posts
    13
    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.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 03-10-2008, 01:08 PM
  2. Linux Linux why Linux??
    By afreedboy in forum Tech Board
    Replies: 146
    Last Post: 01-21-2004, 06:27 PM
  3. Replies: 3
    Last Post: 10-29-2003, 09:39 AM
  4. linux and windows lookup host processes
    By Lynux-Penguin in forum Tech Board
    Replies: 0
    Last Post: 09-01-2003, 12:54 AM
  5. Linux, whats it like?
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 25
    Last Post: 09-16-2002, 07:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21