g++ command changed

Questions about applications and software
Forum rules
Before you post please read this

g++ command changed

Postby kornelix on Sun Dec 24, 2006 2:12 pm

You changed the name of the c++ compiler from g++ to g++-4.1
This breaks untold build scripts.
kornelix
Level 1
Level 1
 
Posts: 10
Joined: Sun Dec 24, 2006 1:55 pm

Linux Mint is funded by ads and donations.
 

Re: g++ command changed

Postby scorp123 on Sun Dec 24, 2006 3:44 pm

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
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: g++ command changed

Postby kornelix on Tue Dec 26, 2006 5:35 pm

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
kornelix
Level 1
Level 1
 
Posts: 10
Joined: Sun Dec 24, 2006 1:55 pm

Postby HyTeK on Wed Dec 27, 2006 11:49 pm

iirc I had to install g++ with apt because vmware tools needs it to install.

So g++ was not installed by default.

Mint 2.1 here also.

apt-get install g++ #might be what your looking for

Cheers.

EDIT:
just checked synaptics history, and g++ was not installed on a fresh install of Mint 2.1

(cliff notes on the extras had to install for vmware tools)
Commit Log for Today.....
Installed the following packages:
g++
g++-4.1
libc6-dev
libstdc++6-4.1-dev
linux-libc-dev
HyTeK
Level 1
Level 1
 
Posts: 13
Joined: Wed Dec 27, 2006 4:49 pm


Return to Software & Applications

Who is online

Users browsing this forum: cornleader, Majestic-12 [Bot] and 18 guests