Home  >  Article  >  Database  >  collect2: error: ld returned 1 exit status

collect2: error: ld returned 1 exit status

WBOY
WBOYOriginal
2016-06-07 15:13:202120browse

在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函数需要其他库的文件或者没有实现,所以将需要的库文件路径添加进来编译就好。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn