So I have Ubuntu on a VM - I want to be able to use C++ (and if I can do this I am going fully Ubuntu at home).
This is probably a simple question but can anyone tell me the easiest and most user friendly way to install C++ compiler and a decent editor?
not too sure on the specifics, but we used to use nedit at uni, its a good free syntax directed editor, as for compiler gcc should do the job.
to get them type apt-get nedit and apt-get gcc(should work, dont have a linux box to check at hand)
you can then launch them from the shell prompt i.e
nedit foo.cpp& (the & makes it start a new process)
then when your done
gcc -o foo foo.cpp
obviously all the linux users on here will probably suggest different editors as world peace is far more likely than all *nix users agreeing on a editor/shell/gui/distribution/how an integer should be incremented by one.
That'll get you enough installed to build apps.
apt-get install build-essential
Then you'll want KDevelop, Valgrind, and maybe some other bits but I'm not a coder so can't really comment, should be enough to get you started though.
Linux C++ Software Development
I heartily recommend Eclipse as an IDE btw.
I'm not a C++ programmer (PHP, Flex, Python, Java, Haskell et al) but Eclipse rocks for what I do these days wrt to web development and has tools for C++ I understand (see linky).
Eclipse C/C++ Development Tooling - CDT
Article showing how to migrate microsoft Visual Studio C++ projects to eclipse:
Cheers guys - I will be back in touch today to let you know how I got on and possibly pressing for more advice.
build-essentials for all the tools you need, you also need this package, if you want to compile any source packages on your VM.
Originally Posted by kmount
Can't find build-essentials - Any ideas?
I've made sure that no typo's are in the line
EDIT: Scratch that - it's build-essential - no 's' on the end.
For info: Used kmounts way about things.
I didn't try anyone elses as kmounts does everything I need (I know it's not your kmount haha, but your suggested way.... You all know what I mean)
If you wanted to be really hardcore you just try :)
sudo apt-get install build-essential gvim
Some may chose emacs over gvim, but that would probably be a mistake LOL
gvim is cheating... do it properly with vim!
Originally Posted by monkeyx
vim ftw!!!! down with emacs and it's evil followers! *ahem*:getmecoat:
I'ma nano/pico n00b ;)
wouldn't use it to code with though :P
Nano here =}
Originally Posted by kesomir
Pah! Text editors? Real Programmers use "echo ... >> ..." and just make sure they get the code right first time.
Originally Posted by localzuk
Right, next religious war: which source code control system?
Edit: Go see XKCD for further advice.
Originally Posted by dhicks
I believe that real programmers write programs to write their programs for them!
That and the use of SED to edit other users mistakes ofc.