Alternative to Visual C++ for Ubuntu Linux?

I just changed my OS from Windows to Ubuntu Linux and I used to program in Visual C++ but it isn't available of Ubuntu. Is there any alternative to Visual C++? Plz also tell me from where can I download it.
There's lots of IDEs for Linux, to name a few:

Sublime Text 3
kDevelop 4

or you could go with simply an editor and compile it manually, like Vim and GCC
Last edited on
On Ubuntu, the easiest is simply to use GCC. gcc comes with Ubuntu, and you can very easily download g++ (the C++ port of the GCC) through the command (in the terminal) of sudo apt-get install g++. If you want an IDE (rather than just a compiler), Code::Blocks and Qt Creator are fairly popular, or Geany/Emacs/Vi if you prefer more light-weight IDE's.
I installed g++. But it doesn't have visual programming like Visual C++.
That's becouse GCC is a compiler, which does nothing more than converting c++ code into an executable. for example, you could compile a file named main.cpp like this:

g++ main.cpp -o main

if you want a GUI, syntax highlighting, compiling, and all that built into one program - you want and IDE like any of the 4 I named, or Qt Creator, as NT3 mentioned.
To get a fairly good IDE, open Terminal and type:
sudo apt-get install codeblocks

You also need XTerm to debug/run codes from the compiler. Therefore after installing Code::Blocks, type (in Terminal):
sudo apt-get install xterm

Last edited on
I like eclipse
but you need a decent PC to run it smoothly

i'm a vs2010 dev and i reckon eclipse is better in some ways, it integrates tools much better and has built in revision control.

I had eclipse but does it run on ubuntu linux?
It does on other distros, so should in ubuntu too.
I ran it on ubuntu 12 and mint 13 so i presume it will run on all flavours, its a java app after all :)
> But it doesn't have visual programming like Visual C++.

Learn to use the toolchain. Knowing that is an essential requirement for every (non-amateur) C++ programmer.

On Linux, start with bash, g++, gdb, gmake and GNU binutils

Once you are comfortable with those, you may want to look at GNU autotools.

AFAIK, the Java IDEs (NetBeans and Eclipse with the C++ plugins) are the only ones that would come anywhere near Visual Studio as a debugger front end.
Topic archived. No new replies allowed.