繁体   English   中英

/usr/local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.4/libgcc.a警告

[英]/usr/local/lib/gcc/x86_64-apple-darwin10.8.0/4.6.4/libgcc.a warning

我有一个涉及/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。 我不确定该警告是否以任何方式威胁到该项目,但我想知道此警告的含义以及是否构成威胁。 如果我也可以做些删除它,那就太好了。 谢谢。

我有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来消除此警告,但是我现在认为已经回答了这个问题。 谢谢。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM