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

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

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


有人知道如何解決嗎?


--

All Comments

Rae avatarRae2009-11-12
乍看之下很像是gcc版本錯誤
Lydia avatarLydia2009-11-16
gcc g++版本都是4.4.1 是因為這個版本太新了嗎?
Tristan Cohan avatarTristan Cohan2009-11-20
可是我又不太知道如何解決這問題 -.-
Damian avatarDamian2009-11-22
他的意思是, gcc和g++的版本不同吧? 你用 gcc --versoin
和 g++ --version 看一下, 是不是兩個版號不同.
Lily avatarLily2009-11-23
他應該會生出一個 config.log 檔, 裡面應該會有更詳細
的訊息訊息.
Olga avatarOlga2009-11-25
好像都是4.4.1 @@ 所以我不知道哪裡出問題? 如何解決?
Lily avatarLily2009-11-25
用gcc34和g++34看看?
Faithe avatarFaithe2009-11-27
樓上的意思是? 哈哈 我不太懂 請講詳細點
Blanche avatarBlanche2009-11-27
ubuntu上沒有GCC 3...
Isabella avatarIsabella2009-11-30
你這個是./configure時掛掉的訊息吧? 看config.log呀..
Kelly avatarKelly2009-12-05
搜 error, 應該會有其他訊息.
Caroline avatarCaroline2009-12-08
error: ac_nonexistent.h: No such file or directory
Madame avatarMadame2009-12-12
看了之後 我還是不知道要怎麼解決 @@