Sign-in / Sign-up
Your question

C compiler

Tags:
  • Compile
  • C#
  • Java
  • C/C++
  • Ubuntu
Last response: in Open Source Software
January 26, 2012 1:29:23 PM

Hello,
whats up guys... i have just started using Ubuntu... what Good compiler for C,C++,C# and Java can i Use

More about : compiler

January 26, 2012 1:34:33 PM

gcc for the first three (should be part of the default setup, if not install from the package manager), Oracle JDK for Java. A good IDE is Eclipse, which will handle all of those.

Edit: Oops, not gcc for C#. You'll need mono for that. C# is not really a good language for Linux development (IMO), though it's one of the best Windows languages.
January 26, 2012 1:59:12 PM

You can't go far wrong with GNU GCC

http://gcc.gnu.org/

You'll get it in the developer package in Ubuntu repositories.

For an editor people make good noises about Eclipse or fight the corner of their preferred editor such as emacs or vi, again all available on the Ubuntu repositories.

EDIT - I really should open less tabs... iJack got there first.
Related resources
Can't find your answer ? Ask !
January 26, 2012 4:51:23 PM

C/C++ can be handled by GCC, which is installed by default.
C# is covered by the Mono project, but you should leave that in Windows.
Java, you can download the Oracle JDK.

You can use Gedit/Nano/ViM, which are installed by default, or install an IDE such as Eclipse or Netbeans. Entirely up to you.
January 26, 2012 7:21:48 PM

Are you just learning, or is this for a development effort?

I like Geany for lightweight development, but if you are wanting to spin up a large multi developer effort, something more like netbeans, or codeblocks for IDE.

For the compiler itself, gcc... which is the compiler used for Linux itself. Oracle JDK for Java of course. C# isn't really a Linux language.
January 26, 2012 7:25:37 PM

Since the only disagreement seems to be the IDE, let me throw in Anjuta as another one to consider. Fairly lightweight but quite powerful.
January 26, 2012 8:08:29 PM

llvm is another choice for compiler, but gcc is very much standard.
January 28, 2012 4:51:51 AM

skittle said:
llvm is another choice for compiler, but gcc is very much standard.

LLVM in technically the bottom-end of a compiler framework, and as such there's a llvmgcc project that has some fairly-impressive compiletime speedups (and even results in faster code at times due to a wider frame in which to optimize).

LLVM works on a model that describes your program, so in theory it can be used to compile from any language with an appropriate language-to-model adapter layer, for example the company that I work for uses LLVM under the hood to convert graphical "programs" to the graph representation on which LLVM operates (and therefore makes it easier to target various different architectures)