collect2: error: ld returned 1 exit status
程序员文章站
2024-01-29 12:15:22
...
在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函数需要其他库的文件或者没有实现,所以将需要的库文件路径添加进来编译就好。
推荐阅读
-
关于QT程序中出现collect2: ld returned 1 exit status
-
fasttext pip安装失败:No module named fasttext? ERROR: Command errored out with exit status 1 的解决方案
-
python语言pycharm导入pyaudio包时出现ERROR: Command errored out with exit status 1
-
C报错——[Error] ld returned 1 exit status
-
php7 编译 collect2: error: ld returned 1 exit status
-
linux:gcc编译error:“collect2: ld returned 1 exit status” (Undefined reference )
-
php7 编译 collect2: error: ld returned 1 exit status
-
关于QT程序中出现"collect2: ld returned 1 exit status&q
-
ubuntu装libmemached出现报错collect2: error :1d returned 1 exit status
-
Mac os更新系统后安装scrapy报错error: command ‘xcrun‘ failed with exit status 1