Compiling in Linux

This is a discussion on Compiling in Linux within the Linux Programming forums, part of the Platform Specific Boards category; OK, so I switched to Ubuntu (accidentally), so I figured I might as well start developing in Linux since I ...

  1. #1
    Registered User IdioticCreation's Avatar
    Join Date
    Nov 2006
    Location
    Lurking about
    Posts
    225

    Compiling in Linux

    OK, so I switched to Ubuntu (accidentally), so I figured I might as well start developing in Linux since I like it better then Windows anyway. So I got the most recent Nightly Build of Code::Blocks and made a little test console project just to see how things were different. I selected the compiler GNU GCC, but when I tried to compile the program I got this error:

    /bin/sh: g++: not found

    I looked in bin and there is a sh file, but I don't really know what the deal is here. Anyone know what I need to do?

    Thanks a ton,
    David
    If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,041
    You do have g++ installed? Is it in your $PATH?

    Try just typing something like this from a console.
    Code:
    $ g++ --version
    $ # or, better yet,
    $ whereis g++
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  3. #3
    Registered User IdioticCreation's Avatar
    Join Date
    Nov 2006
    Location
    Lurking about
    Posts
    225
    That was it, it wasn't installed. Thanks, its working now.
    If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Compiling Linux kernel on Windows
    By jmd15 in forum Linux Programming
    Replies: 9
    Last Post: 04-10-2006, 07:28 AM
  3. newbie : compiling a C++ program in linux
    By gemini_shooter in forum C++ Programming
    Replies: 5
    Last Post: 06-23-2005, 02:45 PM
  4. Cross Compiling with Linux and Turbo C
    By ozgulker in forum Linux Programming
    Replies: 0
    Last Post: 11-18-2002, 02:07 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21