LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Whats a good compiler for linux? (https://www.linuxquestions.org/questions/programming-9/whats-a-good-compiler-for-linux-252140/)

Jmcatch742 11-07-2004 02:57 PM

Whats a good compiler for linux?
 
I have used Dev-C++ for windows but I need something for my linux machine

michaelk 11-07-2004 03:19 PM

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.

krupa 11-08-2004 01:47 AM

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.)


All times are GMT -5. The time now is 07:03 PM.