Seeing following message:
The library is in a format not compatible with the format of the program (32 vs 64 bits)
nm command “Displays information about symbols in object files, executable files, and object-file libraries.” The
nm -X32 returns 0 line on the standard output for a 64 bits modules and returns xx lines for a 32 bits modules. Combined with
wc -l command, nm command quickly confirmed the bit size.
Results of the test for a 64 bits library:
So it is a 64 bits library
Results of the test for a 32 bits library:
And this is a 32 bits library indeed.