User forums > Using Code::Blocks

g++ not found!

(1/2) > >>

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)?

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:
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

Navigation

[0] Message Index

[#] Next page

Go to full version