Home > Database > Mysql Tutorial > collect2: error: ld returned 1 exit status

collect2: error: ld returned 1 exit status

WBOY
Release: 2016-06-07 15:13:20
Original
2183 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template