Whats a good compiler for linux?
I have used Dev-C++ for windows but I need something for my linux machine
|
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. |
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. |