could not read symbols: Archive has no index; run ranlib to add one
Posted
by indu
on Stack Overflow
See other posts from Stack Overflow
or by indu
Published on 2010-05-04T12:33:25Z
Indexed on
2010/05/04
19:18 UTC
Read the original article
Hit count: 199
gcc
i tried making library with
ar -r -c -s libtestlib.a *.o
as given in this tutorial http://matrixprogramming.com/Tools/CompileLink.html
But on linking with library following error comes
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
i tried with ranlib also but still the error comes.. im working with ubuntu9.10 Please suggest me some solution for this
© Stack Overflow or respective owner