could not read symbols: Archive has no index;
来源:互联网 发布:给自己口 淘宝 编辑:程序博客网 时间:2024/05/22 14:01
could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
运行ranlib
后仍然无效,这时该怎么办呢?
第1步
首先,运行ar
进行测试,检查打包的正确性。
ar -t libfurzoom.a
如果输出了应该打包在内的文件名,则表示正确,请继续下一步。如提示错误,请检查打包过程的正确性。
这里假设打包后的文件名为libfurzoom.a
。
第2步
使用file
命令检查文件每一个被打包文件的格式的正确性。
file furzoom.o
输出了正确的输出了文件类型,则表示正确,全部文件检查完毕后,请继续下一步。如果提示错误,请重新生成相应的文件。
这里假设被打包的文件名为furzoom.a
。
第3步
使用nm
命令对被打包文件进行导出符号检查。
nm furzoom.o
如果正确的输出了文件的中应该导出的符号(如函数名称等)信息,则表示正确。如果提示错误,则请查检编译该文件使用命令的正确性。
这里假设被打包的文件名为furzoom.a
。
至此,问题应该已经解决了,如果还没有,欢迎讨论!
更多请参考枫竹梦。
0 0
- could not read symbols: Archive has no index;
- libtest.a: could not read symbols: Archive has no index; run ranlib to add one的原因和解决方案
- Could not read symbols解决方法
- Could not read symbols解决方法
- Could not read symbols解决方法
- Could not read symbols解决方法
- could not read symbols报警
- Could not read symbols解决方法
- Could not read symbols解决方法
- Could not read symbols解决方法
- Could not read symbols解决方法
- R_X86_64_32 & could not read symbols: Bad value
- libexpat.so:could not read symbols...
- 移植: Could not read symbols解决方法
- could not be opened. Could not read archive
- "......xib" could not be opened. Could not read archive.
- The document could not be opened. Could not read archive
- could not read symbols: File format not recognized
- 高内聚,低耦合 运用到实际项目中
- Redis简单操作Java代码
- 【错误】 no rule make target '../new/new_pro',needed by 'Makefile'.stop
- 欢迎使用CSDN-markdown编辑器
- 英文自动换行
- could not read symbols: Archive has no index;
- IOS 开发:调用打电话,发短信,打开网址
- webview 加载问题
- Android NDK开发---jni编程之采用swig
- HP SAN
- Hive.分组排序和TOP
- 结合悬浮窗实现后台播放视频
- JAVA导出Excel
- Comparable和Comparator