现在的位置: 首页 > 综合 > 正文

【原创】“collect2: ld returned 1 exit status”错误

2012年08月27日 ⁄ 综合 ⁄ 共 217字 ⁄ 字号 评论关闭

      今天在编译android时碰到个问题,错误log如下:

      “out/target/product/xxxx/obj/lib/xxxxxx.so: undefined reference to `xxxxxxxx'” 

      “collect2: ld returned 1 exit status”,这个错误时因为在使用xxxxxx.so库时,库中的xxxxxxxx函数需要其他库文件或者没有实现。所以只需要将相应的库文件加到编译的路徑中.

抱歉!评论已关闭.