1

Need a good c/c++ compiler for Ubuntu. I like coding or programming.

I used Dev-C++ on Windows. Is there any good compilers like Dev-C++?

I tried code::blocks ide but it seems a little buggy for me.

  • 2
    Are you looking for a compiler, or an IDE? Dev-C++ is an IDE that uses the mingw compiler. In either case @Nymeria answer is perfect. If you did mean IDE, though, please edit your question. – TheSchwa Aug 11 '14 at 10:39
  • 1
    Geany is a light-weight IDE and gcc & g++ are c & c++ compilers. – Sudheer Aug 15 '14 at 01:01

2 Answers2

2

For C++, you can install g++:

sudo apt-get install g++

For C, you can install gcc:

sudo apt-get install gcc

If you need an IDE you can install NetBeans:

sudo apt-get install netbeans
Eliah Kagan
  • 117,780
Nymeria
  • 1,429
  • 1
  • 12
  • 19
-1

I like very much "Sublime text"

For SUBLIME text2 :

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

For SUBLIME text3

 sudo add-apt-repository ppa:webupd8team/sublime-text-3
 apt-get update
 sudo apt-get install sublime-text-installer