Click to See Complete Forum and Search --> : g++ complier ??? help
disher12
12-01-2002, 03:39 AM
I just started with linux and am using linux mandrake and I am trying to complie a c++ program. At school I use the g++ complier was just wondering how I use that on here. I look at the manual for gcc complier and it says both [gcc] and [g++] for a command but only gcc works. But when I look for it I can't find it anywere. Can any one help me out with this???
Tiomera
12-01-2002, 03:59 AM
If gcc is working, g++ should be working fine. But as it is not, maybe you need to reinstall it (just a guess). What error is given to you?
clark kent
12-01-2002, 08:32 AM
what do you mean by it doesnt work ? if you could post alittle more info on this it would make it more easier, what is the error message ?
Try looking for the g++ compiler in /usr/bin. is it there ? if not then yeh u gotta install it but its hard to believe that a standard installation of mandrake will not include g++ by default.
disher12
12-01-2002, 07:05 PM
Well I don't have any errors because it isn't there?? I have only installed linux on my computer and I thought that the g++ came with the deal since gcc is there. When I try compling any source code with g++ it says
bash:g++ bad command.
and i have looked every where for it, and have found gcc but not g++. Don't they come together??? In the "man gcc" [g++] is mentioned like it is already installed like gcc but it's not there?? Does it not come with linux mandrake?? Is there a place that I have to go download and install it??
UnderDog138
12-02-2002, 12:05 AM
su to root and type updatedb, then when it's done (takes forever) type locate g++ and see if it finds it, if not, you'll have to install it. I thought it came with gcc but maybe not. I just went searching through my Mandrake RPMs to see if it was on one of the CDs and I can't find it. Maybe someone else knows where to get it.
bwkaz
12-02-2002, 02:50 PM
Try the gcc-c++ or the gcc-g++ package. The way Mandrake sets stuff up, gcc comes in separate packages for each language it supports -- there's a package for C, a package for C++, one for the experimental Java compiler, one for Ada, and one for something else.