How to Solve “/usr/bin/ld: skipping incompatible”

Today, when I was working on a project, I used the make command to solve the problem of / usr/bin/LD: skipping incompatible.

The essence of this problem is that when linking library files, the library file version does not correspond to the platform version.

Solution: objdump – P libmylib. A. check whether the library version is 32-bit or 64 bit, or arm version or… And so on. Analyze it carefully. You’ll be in the fog. (the problem I encountered is that the compiler chooses version 64, but XXX. A is version 32, which is not compatible)
conclusion: problems are beneficial but not harmful. Only by solving problems can we improve ourselves!

Read More: