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.
- 05-12-2009 #1Just 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
- 05-12-2009 #2
Hi and Welcome !
Open Terminal and execute this
Insert Ubuntu CD in CD Drive and execute thisCode:sudo apt-cdrom add
It will install all packages, compilers necessary to compile your C and C++ code.Code:sudo apt-get update sudo apt-get install build-essential
Last edited by devils casper; 05-15-2009 at 02:12 AM.
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 05-14-2009 #3
the c++ compiler is called g++
it may be installed by default or may be not, anyways if not you can get it from
btw, c++ in microsoft visual studio is different from here for example here you can't say:sudo apt-get install g++
#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
- 05-15-2009 #4
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
- 05-15-2009 #5
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
- 05-18-2009 #6Just Joined!
- Join Date
- Feb 2009
- Posts
- 5
thanks
thanks man for this help, and accept me as a new freind
with my respect
- 05-18-2009 #7
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



