Skip to content
Search

Ranlib

lastmod 2018-08-17created 2014-09-253 edits

Troubleshooting

Could not read symbols

The following error message may be printed during a build.

could not read symbols: Archive has no index; run ranlib to add one

In this case, you need to generate the index table using ranlib [library name]. Alternatively, use the ar utility as shown below.

$ ar x libname.a
$ ar rcs libadd2.a *.o

Favorite site

References


  1. Binutils-static_library-ar,ranlib.pdf ↩