Skip to content

Ranlib

Troubleshooting

Could not read symbols

빌드시 아래와 같은 에러 메시지가 출력될 수 있다.

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

이 경우 ranlib [라이브러리이름]를 사용하여 Index table을 생성해야 한다. 또는 아래와 같이 ar유틸리티를 사용해야 한다.

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

Favorite site

References


  1. Binutils-static_library-ar,ranlib.pdf