Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-07-2004, 02:57 PM   #1
Registered: Jul 2004
Distribution: Mepis, Ubuntu, Slackity slack
Posts: 159

Rep: Reputation: 30
Whats a good compiler for linux?

I have used Dev-C++ for windows but I need something for my linux machine
Old 11-07-2004, 03:19 PM   #2
Registered: Aug 2002
Posts: 14,764

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Actually Dev-C++ is an Integrated Development Evironment and according to the website it uses a port of gcc compiler.

gcc is the linux c/c++ compiler.

There are IDEs in linux, ajunta, Kdevelop, Borland X are a few that I can think of at the moment.

Most of the time I just use emacs.

Last edited by michaelk; 11-07-2004 at 03:22 PM.
Old 11-08-2004, 01:47 AM   #3
LQ Newbie
Registered: Sep 2003
Posts: 6

Rep: Reputation: 0
My mistake... apparently gcc does compile C++ code, but only if the source is tagged with a .cpp extension. [which, in my own, humble opinion, is a bad idea. Never tie file names with a program/behavior.]

Old comment:
To be anal about it, gcc is only a C compiler. g++ is the C++ compiler for linux/Unix environments. Typically, gcc ignores those errors where in a C program people use C++ syntax and whatnot, but if you want to write ANSI standard code, you should use gcc for C code and g++ for C++ code. (use the -Wall and -pedantic flags if you want strict ANSI code.)

Last edited by krupa; 11-08-2004 at 01:59 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Whats a good music transcription program in Linux? Twiggy794 Linux - Software 9 10-21-2009 05:31 PM
whats a good linux for a newb that doesn't know anything about linux crikkett10 Linux - Distributions 7 08-21-2004 08:50 PM
whats a good linux for a complete newb crikkett10 Linux - Newbie 3 08-18-2004 02:37 PM
Whats so good about Slackware? AutoBot Slackware 68 05-19-2002 06:37 PM
Need good Linux C++ Compiler Breezwell Programming 7 08-28-2001 05:43 PM

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration