Author Topic: g++ not found!  (Read 6083 times)

Offline Yarin

  • Single posting newcomer
  • *
  • Posts: 4
g++ not found!
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: g++ not found!
« Reply #1 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: g++ not found!
« Reply #2 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)?
(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!]

Offline Yarin

  • Single posting newcomer
  • *
  • Posts: 4
Re: g++ not found!
« Reply #3 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(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!]

Offline Yarin

  • Single posting newcomer
  • *
  • Posts: 4
Re: g++ not found!
« Reply #5 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.

Offline Yarin

  • Single posting newcomer
  • *
  • Posts: 4
Re: g++ not found!
« Reply #6 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