ホームページ  >  記事  >  データベース  >  collect2: error: ld returned 1 exit status

collect2: error: ld returned 1 exit status

WBOY
WBOYオリジナル
2016-06-07 15:13:202120ブラウズ

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

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。