Find the answer to your Linux question:
Results 1 to 7 of 7
hello I'm a new member here, and i have a pbm with the ubuntu 8.10, i can't have a compiler for the c++, i can't get it from the package ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    5

    [SOLVED] Help me pls


    hello
    I'm a new member here, and i have a pbm with the ubuntu 8.10, i can't have a compiler for the c++, i can't get it from the package of CD itself.
    so what can i do, pls help me
    thanks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Open Terminal and execute this
    Code:
    sudo apt-cdrom add
    Insert Ubuntu CD in CD Drive and execute this
    Code:
    sudo apt-get update
    sudo apt-get install build-essential
    It will install all packages, compilers necessary to compile your C and C++ code.
    Last edited by devils casper; 05-15-2009 at 03:12 AM.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    the c++ compiler is called g++
    it may be installed by default or may be not, anyways if not you can get it from
    sudo apt-get install g++
    btw, c++ in microsoft visual studio is different from here for example here you can't say:

    #include <iostream.h>
    you have to use
    #include <iostream>
    using namespace std;

    or you can't say void main(){
    |
    |
    |
    }

    but you must give it a return type for ex:
    int main(){
    |
    |
    |
    return 0;
    }
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    As I mentioned earlier, build-essential meta-package installs all compilers necessary to compile C and C++ code. There is no need to install g++ individually.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    oh i see thnx devils casper
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  7. #6
    Just Joined!
    Join Date
    Feb 2009
    Posts
    5

    Wink thanks

    thanks man for this help, and accept me as a new freind
    with my respect

  8. #7
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    if your issue is solved then please mark the thread as solved so that the other guys who has the same issue can use and they are 100% reassured it works
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

Posting Permissions

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