Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top