Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Yarin on June 27, 2009, 09:18:56 pm

Title: g++ not found!
Post by: Yarin on June 27, 2009, 09:18:56 pm
I recently installed GCC 4.4.0 and Code::Blocks 8.02 on my new Fedora 11 system. 8)
But all is not well. When I try to compile a C++ (even a Hello World) program, it says it can't find g++, when I make a copy of gcc and name it to g++, it finds it, but then a different program can't be found.
When I ran CB, it says it detected GCC fine. What is going on?
This is an x64, BTW.

Thanks,
Yarin
Title: Re: g++ not found!
Post by: Jenna on June 27, 2009, 09:31:28 pm
I guess you did not install a g++-package. In most (all ?) distributions it's in a different package.
Title: Re: g++ not found!
Post by: oBFusCATed on June 27, 2009, 09:34:39 pm
// jens is faster :-P
Do you have g++ installed (it might be a different package on fedora, I'm not a fedora user)?
// jens is faster :-P

Have you tried ls -l /usr/bin/g++ or whereis g++ ?
What is you compiler installation dir in settings-> compiler -> toolchain executables (mine on gentoo is /usr)?
Title: Re: g++ not found!
Post by: Yarin on June 28, 2009, 12:44:36 am
I always thought g++ was just the name of one of GCC's applications - not a package unto itself. Either way, I couldn't find an RPM called "g++".

Yeah, GCC installed to /usr. But there is no /usr/bin/g++. And whereis didn't find anything.
Title: Re: g++ not found!
Post by: oBFusCATed on June 28, 2009, 01:38:03 pm
What about trying google? ;-P

http://www.google.com/#hl=en&q=fedora+g%2B%2B+install&aq=0&oq=fedora+g%2B%2B+in&aqi=g1&fp=OzgK0dwM7rU
Title: Re: g++ not found!
Post by: Yarin on June 30, 2009, 01:36:06 am
I googled before posting.
But I did look at the link you gave (not a term I've tried), but nothing to help me there.

The thing is, I don't have yum at my disposal. I can't connect. I have a winmodem on my laptop, and I won't get the parts for my new desktop for about 2 weeks.
Title: Re: g++ not found!
Post by: Yarin on June 30, 2009, 10:03:52 pm
I got it working.

I had to download gcc-c++. I know, stupid me. It's just that the source code provides it all in one package, or seperate packs, I assumed the RPMs would be the same. I looked all over the net for gcc-g++ packs (again, because that's how the source packs are done) with no luck. Then I finally found out about the gcc-c++ pack.

Thanks all for your help,
Yarin