+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
*nix Thread, Linux C++ in Technical; So I have Ubuntu on a VM - I want to be able to use C++ (and if I can ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    Linux C++

    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?

  2. #2

    Join Date
    Dec 2005
    Location
    Midlands
    Posts
    130
    Thank Post
    2
    Thanked 12 Times in 12 Posts
    Rep Power
    20
    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.

  3. Thanks to deanc from:

    Hightower (31st July 2008)

  4. #3


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,691
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    Code:
    apt-get install build-essential
    That'll get you enough installed to build apps.

    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.

  5. Thanks to kmount from:

    Hightower (31st July 2008)

  6. #4
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    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!

  7. Thanks to kesomir from:

    Hightower (31st July 2008)

  8. #5

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Cheers guys - I will be back in touch today to let you know how I got on and possibly pressing for more advice.

  9. #6
    ahuxham's Avatar
    Join Date
    Apr 2008
    Posts
    1,122
    Thank Post
    76
    Thanked 138 Times in 109 Posts
    Rep Power
    30
    Quote Originally Posted by kmount View Post
    Code:
    apt-get install build-essentials
    That'll get you enough installed to build apps.

    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.
    build-essentials for all the tools you need, you also need this package, if you want to compile any source packages on your VM.

  10. #7

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    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.

  11. #8

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    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)

  12. #9
    monkeyx's Avatar
    Join Date
    Nov 2006
    Posts
    364
    Thank Post
    8
    Thanked 52 Times in 41 Posts
    Rep Power
    25
    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

  13. #10

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,596
    Thank Post
    109
    Thanked 764 Times in 595 Posts
    Rep Power
    181
    Quote Originally Posted by monkeyx View Post
    Some may chose emacs over gvim, but that would probably be a mistake LOL
    gvim is cheating... do it properly with vim!

  14. #11

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,694
    Thank Post
    516
    Thanked 2,455 Times in 1,899 Posts
    Blog Entries
    24
    Rep Power
    833
    vim ftw!!!! down with emacs and it's evil followers! *ahem*

  15. #12
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    I'ma nano/pico n00b

    wouldn't use it to code with though :P

  16. #13
    ahuxham's Avatar
    Join Date
    Apr 2008
    Posts
    1,122
    Thank Post
    76
    Thanked 138 Times in 109 Posts
    Rep Power
    30
    Quote Originally Posted by kesomir View Post
    I'ma nano/pico n00b

    wouldn't use it to code with though :P
    Nano here =}

  17. #14

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,625
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by localzuk View Post
    vim ftw!!!! down with emacs and it's evil followers!
    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.

  18. #15
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    Quote Originally Posted by dhicks View Post
    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?
    --
    David Hicks
    SVN!

    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.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Linux OS
    By mckeder in forum Comments and Suggestions
    Replies: 2
    Last Post: 27th September 2007, 07:30 PM
  2. New to Linux
    By Joni in forum *nix
    Replies: 4
    Last Post: 27th March 2007, 09:55 AM
  3. Replies: 30
    Last Post: 24th November 2006, 08:33 AM
  4. Tips For Going Over To Linux.
    By tickmike in forum *nix
    Replies: 13
    Last Post: 22nd September 2006, 10:32 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •