作者evilkids (背著蒙古包睡你家)
看板Linux
標題[問題] Compiling error ---> gcc g++ version mismatch?
時間Wed Nov 11 23:24:46 2009
我想在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
---------------------------------------------------------------------------
有人知道如何解決嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 125.229.32.119
推 s200070221:乍看之下很像是gcc版本錯誤 11/11 23:59
→ evilkids:gcc g++版本都是4.4.1 是因為這個版本太新了嗎? 11/12 00:02
→ evilkids:可是我又不太知道如何解決這問題 -.- 11/12 00:03
推 cole945:他的意思是, gcc和g++的版本不同吧? 你用 gcc --versoin 11/12 00:07
→ cole945:和 g++ --version 看一下, 是不是兩個版號不同. 11/12 00:07
→ cole945:他應該會生出一個 config.log 檔, 裡面應該會有更詳細 11/12 00:08
→ cole945:的訊息訊息. 11/12 00:08
→ evilkids:好像都是4.4.1 @@ 所以我不知道哪裡出問題? 如何解決? 11/12 00:46
推 yanli2:用gcc34和g++34看看? 11/12 03:09
→ evilkids:樓上的意思是? 哈哈 我不太懂 請講詳細點 11/12 12:25
推 Adama:ubuntu上沒有GCC 3... 11/12 12:40
推 cole945:你這個是./configure時掛掉的訊息吧? 看config.log呀.. 11/12 17:56
→ cole945:搜 error, 應該會有其他訊息. 11/12 17:57
→ evilkids:error: ac_nonexistent.h: No such file or directory 11/12 22:40
→ evilkids:看了之後 我還是不知道要怎麼解決 @@ 11/12 22:41