gcc版本問題 - Linux

Table of Contents


我是剛接觸linux的超級菜鳥,
已經在網路上找很多方法了但都沒用,
公司要求用gcc4.9的版本,
但用apt直接裝gcc都是5以上了。

直接裝gcc-4.9好像偵測不到,
查gcc -v都是gcc未安裝
要查gcc-4.9 -v才會顯示版本資訊
可是要裝公司的軟體的時候
一直顯示g++: command not found

請問怎麼樣可以解決這個問題呢?
已經碰壁很多次真的不想要手動安裝QQ
-----
Sent from JPTT on my iPhone

--

All Comments

Hedda avatarHedda2018-01-22
apt install g++
Catherine avatarCatherine2018-01-25
抓source code自己編譯,然後用softlink指過去
David avatarDavid2018-01-29
「update-alternatives gcc」用這當關鍵字查
Aaliyah avatarAaliyah2018-02-03
先學會分清楚 gcc可以是GNU C Compiler或GNU Compiler Col
lection
你從apt上撈的是前者 他跟g++都屬於後者裡面的工具 當你討
論版本的時候 是指後者