I'm developing a C++ application where I need to test whether a .SO is 32-bit or 64-bit, before loading it.
I managed to make this assessment on Windows, taking the Headers file.
Now I'm searching for a way to make that assessment in Linux.
Initially I want to do this using functions or methods in C++, ie without calling system()
on an external program (file
, objdump
...).
If our community can help me find a solution to this, I will be very grateful.
Thanks!