Archiving static libraries: "could not read symbols"
Hi All,
I have two static libraries, and i need to create a single library by combining these two i.e I have libone.a and libtwo.a and need to make libcombined.a by combining libone.a and libtwo.a I tried ar -rs libcombined.a libone.a libtwo.a But when i tried to link this library to an exe i got the error "libcombined.a:could not read symbols: Archive has no index; run ranlib to add one" I tried running ranlib, but still i am getting this error , please help. |
Try to extract all the objects from libone.a and libtwo.a then merge them all together:
Code:
$ ar -x libone.a Quote:
|
All times are GMT -5. The time now is 07:35 PM. |