2013-05-08 31 views
0

我有一個警告涉及到/usr/local/lib/gcc/x86_64-apple-darwin10.8.0/ 4.6.4/libgcc.a中。我試圖編譯使用的Makefile,其中一個C++項目顯示以下內容:/usr/local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.4/libgcc.a警告

executeit: bplustree.o nonleafnode.o leafnode.o 
    g++ -o executeit bplustree.o nonleafnode.o leafnode.o 
bplustree.o: bplustree.cpp 
    g++ -g -c bplustree.cpp 
nonleafnode.o: nonleafnode.h nonleafnode.cpp 
    g++ -g -c nonleafnode.h nonleafnode.cpp 
leafnode.o: leafnode.h leafnode.cpp 
    g++ -g -c leafnode.h leafnode.cpp 
clean: 
    rm executeit bplustree.o nonleafnode.o leafnode.o 

當調用「做」,我得到了終端的輸出如下:

g++ -g -c bplustree.cpp 
g++ -g -c nonleafnode.h nonleafnode.cpp 
g++ -g -c leafnode.h leafnode.cpp 
g++ -o executeit bplustree.o nonleafnode.o leafnode.o 
ld: warning: in /usr/local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.4/libgcc.a, file was built for unsupported file format which is not the architecture being linked (x86_64) 

正如你所看到的,我有gcc版本4.6.4。我不確定此警告是否會對以任何方式工作的項目構成威脅,但我想知道此警告的含義以及是否構成威脅。如果我也可以做些事情來刪除它,那將會很好。謝謝。

回答

0

我有Mac OS X版本10.6.8。文件/usr/local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.4/libgcc.a具有「10.8.0」,並且我安裝的這個版本的gcc必須把我搞砸了。我不知道是否可以通過安裝OS X 10.8.0來移除此警告,但我現在將認爲此問題已得到解答。謝謝。