Compiling error ---> gcc g++ version mismatch? - Linux

Mary avatar
By Mary
at 2009-11-11T23:24

Table of Contents



我想在ubuntu上重新compile (加我抓的code進去)


卻發現一直出現以下訊息...

---------------------------------------------------------------------------
...
checking for a C compiler (trying gcc gcc-4.1 gcc-4.0 gcc-3.4 gcc-3.3)...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a C++ compiler (trying g++ g++-4.0 g++-4.0 g++-3.4 g++-3.3)...
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether the C++ compiler works... yes
checking how to run the C preprocessor... gcc -E
checking for the version of the GNU C compiler... gcc
checking for the version of the GNU C++ compiler... g++
***
*** warning: C compiler version gcc doesn't equal
*** C++ compiler version g++
***
error: unsupported compiler version gcc

---------------------------------------------------------------------------


有人知道如何解決嗎?


--
Tags: Linux

All Comments

Rae avatar
By Rae
at 2009-11-12T13:46
乍看之下很像是gcc版本錯誤
Lydia avatar
By Lydia
at 2009-11-16T22:23
gcc g++版本都是4.4.1 是因為這個版本太新了嗎?
Tristan Cohan avatar
By Tristan Cohan
at 2009-11-20T06:31
可是我又不太知道如何解決這問題 -.-
Damian avatar
By Damian
at 2009-11-22T15:53
他的意思是, gcc和g++的版本不同吧? 你用 gcc --versoin
和 g++ --version 看一下, 是不是兩個版號不同.
Lily avatar
By Lily
at 2009-11-23T23:00
他應該會生出一個 config.log 檔, 裡面應該會有更詳細
的訊息訊息.
Olga avatar
By Olga
at 2009-11-25T10:15
好像都是4.4.1 @@ 所以我不知道哪裡出問題? 如何解決?
Lily avatar
By Lily
at 2009-11-25T13:47
用gcc34和g++34看看?
Faithe avatar
By Faithe
at 2009-11-27T03:31
樓上的意思是? 哈哈 我不太懂 請講詳細點
Blanche avatar
By Blanche
at 2009-11-27T12:58
ubuntu上沒有GCC 3...
Isabella avatar
By Isabella
at 2009-11-30T14:32
你這個是./configure時掛掉的訊息吧? 看config.log呀..
Kelly avatar
By Kelly
at 2009-12-05T08:29
搜 error, 應該會有其他訊息.
Caroline avatar
By Caroline
at 2009-12-08T21:39
error: ac_nonexistent.h: No such file or directory
Madame avatar
By Madame
at 2009-12-12T15:53
看了之後 我還是不知道要怎麼解決 @@

Ubuntu 9.10 的防火牆

Tristan Cohan avatar
By Tristan Cohan
at 2009-11-11T18:19
※ 引述《oversky0 (oversky0)》之銘言: : 請問 Ubuntu 9.10 有沒有需要裝防火牆軟體? : 是不是內建的 iptable 就夠了? : 可是像我用 Transmission torrent client : 也沒去開 ports 就能跑了, : 這樣 iptable 有在作用嗎 ...

Ubuntu 9.10 的防火牆

Bennie avatar
By Bennie
at 2009-11-11T18:12
請問 Ubuntu 9.10 有沒有需要裝防火牆軟體? 是不是內建的 iptable 就夠了? 可是像我用 Transmission torrent client 也沒去開 ports 就能跑了, 這樣 iptable 有在作用嗎? 我看 lazyscripts 內有推薦用 firestarter, 這是 i ...

Moblin小筆電暨開放文件創新應用研討會

Erin avatar
By Erin
at 2009-11-11T15:30
自第一款小筆電推出以來,小筆電已經在市場上引爆銷售熱潮,硬體大廠紛紛 推出自家品牌之小筆電,成為行動平台主流產品之一。Moblin是由Intel主導開發之 作業系統,適用於各種行動平台,以達到低價格高效能之目標。如今,搭配Moblin 作業系統之小筆電即將上市,本研討會很榮幸邀請到百資科技與Intel,為我們 ...

Ubuntu安裝完成之後的音效、常用程式安裝

Lauren avatar
By Lauren
at 2009-11-11T13:19
※ 引述《room (放、空、思)》之銘言: : 我有主機板的驅動程式片,但並沒有安裝 : 當我直接點光碟片中的Autorun.inf,卻不能執行 : 所以我才沒有安裝主機板的驅動程式 我想你要先了解,windows的程式基本上是不能在linux底下執行的 這是兩個完全不同的作業系統,並不像win98的程式也 ...

Ubuntu安裝完成之後的音效、常用程式安裝

Harry avatar
By Harry
at 2009-11-11T12:51
小弟已經將硬碟重新格式化,並安裝好Ubuntu新的主系統 原本安裝好之後,也能用系統安裝的影音播放程式播放 當我開啟程式、網頁之後,通知我要下載更新 所以我就點了全部更新,並且都安裝完成 可是卻在重開機之後原有的音效不見了 影片、mp3的播放都是沒了聲音 所以想請教一些問題 一、音效要如何恢復? ...