Hightower (31st July 2008)

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.
Hightower (31st July 2008)

That'll get you enough installed to build apps.Code: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.
Last edited by kmount; 1st August 2008 at 04:53 PM. Reason: Removed s from end of essential to make it correct for future indexing.
Hightower (31st July 2008)
try here:
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:
http://www-128.ibm.com/developerwork...=dgr-eclipse-1
Good luck!
Hightower (31st July 2008)

Cheers guys - I will be back in touch today to let you know how I got on and possibly pressing for more advice.

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.
Last edited by Hightower; 31st July 2008 at 12:20 PM.

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

vim ftw!!!! down with emacs and it's evil followers! *ahem*![]()
I'ma nano/pico n00b
wouldn't use it to code with though :P

Pah! Text editors? Real Programmers use "echo ... >> ..." and just make sure they get the code right first time.
Right, next religious war: which source code control system?
Edit: Go see XKCD for further advice.
--
David Hicks
Last edited by dhicks; 31st July 2008 at 10:56 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)