g++ command changed

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
kornelix
Level 1
Level 1
Posts: 10
Joined: Sun Dec 24, 2006 1:55 pm

g++ command changed

Post by kornelix »

You changed the name of the c++ compiler from g++ to g++-4.1
This breaks untold build scripts.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: g++ command changed

Post by scorp123 »

kornelix wrote:You changed the name of the c++ compiler from g++ to g++-4.1
This breaks untold build scripts.
On my machine (LinuxMint 2.0, "Barbara") all three exist. Can you please verify if these files are around? (Should be more or less the same on all Debian-like distributions!):
  • /usr/bin/c++ is a symbolic link to /etc/alternatives/c++
    /etc/alternatives/c++ is a symbolic link to /usr/bin/g++
    /usr/bin/g++ is a symbolic link to /usr/bin/g++-4.1
So regardless how you call the compiler it should work either way via these symbolic links. And I have already compiled a few things here so I know that it should be working and so far I haven't encountered any build script that was broken.

Did you try to compile something and did you encounter a specific error?

Regards,
Scorp123
kornelix
Level 1
Level 1
Posts: 10
Joined: Sun Dec 24, 2006 1:55 pm

Re: g++ command changed

Post by kornelix »

scorp123 wrote: Did you try to compile something and did you encounter a specific error?
Regards,
Scorp123
On my Ubuntu 6.10 system, the command g++ works.
On my Mint 2.1 system, the command gives the following error:
bash: g++: command not found

There is no file or symlink named g++ on my Mint system.
Existing files in /usr/bin: gcc, gcc-4.1, g++-4.1 (no g++)

I have not messed around with symlinks or deleted any files on either system (as far as I know). The Mint 2.1 is a fresh installation. I moved some working development projects from Ubuntu to Mint and ran into this problem.

thanks
Mike
Locked

Return to “Software & Applications”