News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

g++ not found!

Started by Yarin, June 27, 2009, 09:18:56 PM

Previous topic - Next topic

Yarin

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

Jenna

I guess you did not install a g++-package. In most (all ?) distributions it's in a different package.

oBFusCATed

// 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)?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Yarin

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.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Yarin

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.

Yarin

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