在mac 上编译build_native.py 报错:collect2: error: ld returned 1 exit status “out/target/product/xxxx/obj/lib/xxxxxx.so: undefined reference to `xxxxxxxx'” “collect2: error: ld returned 1 exit status” 这个错误是因为在使用 .so库中的时候
在mac 上编译 build_native.py 报错:collect2: error: ld returned 1 exit status
“out/target/product/xxxx/obj/lib/xxxxxx.so: undefined reference to `xxxxxxxx'”
“collect2: error: ld returned 1 exit status” 这个错误是因为在使用 .so库中的时候, 库中的xxxxxxxx函数需要其他库的文件或者没有实现,所以将需要的库文件路径添加进来编译就好。
查看更多关于collect2:error:ldreturned1exitstatus的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did158711