我有一个涉及 /usr/local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.4/libgcc.a 的警告。我试图使用 Makefile 编译一个 C++ 项目,它显示以下内容:
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
当我调用“make”时,我在终端中得到以下输出:
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。我不确定这个警告是否会以任何方式对项目工作构成威胁,但我想知道这个警告的含义以及它是否构成威胁。如果我也能做点什么来删除它,那就太好了。谢谢你。