could not read symbols: Archive has no index; run ranlib to add one
Hi,
I am trying to port c & c++ open source code onto embedded target(MIPS).It compiles fine on x86/RH4. When I try embedded platform specific tool chain as follows, I get following error.
1)mipsel-linux-uclibc-cpp -O2 -g -Wall -Werror xyz.c xyz.o
mipsel-linux-uclibc-cpp -O2 -g -Wall -Werror pqr.c pqr.o
SUCCESS.Objects are ready
2)mipsel-linux-uclibc-ar -rcsv ../libs/ttt.a xyz.o pqr.o
SUCCESS. Static Library is ready
3)mipsel-linux-uclibc-ranlib libs/ttt.a libs/ttt.a
Fine. No warnings
4)mipsel-linux-uclibc-gcc -g -o ../bin/ttt_binary ttt.o ../libs/ttt.a ../libs/abc.a
ERROR:
could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
I tried different combinations. It did not help. My idea is to port an open source code that works fine on X86/Linux to an embedded target based on MIPS.
Thankyou
|