我试着用来制作库
ar -r -c -s libtestlib.a *.o如本教程http://matrixprogramming.com/Tools/CompileLink.html所示
但在与库链接时,会出现以下错误
g++ -o uni2asc uni2asc.o -L../Modules -ltestlib
../Modules/libtestlib.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status我也尝试了ranlib,但仍然出现错误..我正在使用ubuntu9.10,请给我一些解决方案
https://stackoverflow.com/questions/2765240
复制相似问题