C++ 诡异的编译问题。请教。# Linux - Linux 操作系统
h*y
1 楼
编译生成了一个库,libcore.a
其中有 util.cc.o
但是 我用 nm -A libcore.a|grep util.cc.o|grep functionA 找不到util.cc定义的
functionA()
这导致在最后link时候用到libcore.a这个库时候 undefined reference to 这个
functionA()的错误
生成libcore.a过程完全正常,没有错误发生。
在另外一台电脑上完全正常,可以nm后可以找到这个函数的。
太诡异了。请指教!
其中有 util.cc.o
但是 我用 nm -A libcore.a|grep util.cc.o|grep functionA 找不到util.cc定义的
functionA()
这导致在最后link时候用到libcore.a这个库时候 undefined reference to 这个
functionA()的错误
生成libcore.a过程完全正常,没有错误发生。
在另外一台电脑上完全正常,可以nm后可以找到这个函数的。
太诡异了。请指教!