Вопрос

I am too much curious about the issue that sometimes .so linking fails, but whenever I use static libs (.a) it doesn't. Do anyone have idea on that?

For example in linux I have used libcrypto.a lib which is ok every compilation time. But libcrypto.so is so much inconsistent. What is the root cause of that?

The error it shows is : ld: libcrypto.so in wrong file format

Это было полезно?

Решение

Ok. Solved it. You are right @n.m. Your comment worked for me.

Your expert is wrong. The reason of the inconsistent behaviour may be broken hardware. Try running memtest86 and whatever disk check utility your filesystem normally uses. – n.m.

Thanks.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top