So, we can say /usr/lib/libc. a is a 64-bit static library. The “elf32-*” indicates all object files in the library use 32-bit addresses.
Replace libjpeg by any library you want, and you have a generic, distro-independent* way of checking for library availability. If for some reason the path to ldconfig is not set, you can try to invoke it using its full path, usually /sbin/ldconfig . This should be accepted as the answer.
To know whether your system is 32-bit or 64-bit, type the command "uname -m" and press "Enter". This displays only the machine hardware name. It shows if your system is running 32-bit (i686 or i386) or 64-bit(x86_64).
gcc 4.5.1
Fedora 14 Linux
I have this static library that was build from a previous programmer. However, he has left the company and we don't have the source code. All we have is the header files *.h
and the libnet.a
static library.
When I am try and link this with our application. I get a incompatible linker error
. I think the problem is that the static library has been built on a 32 bit machine. And I am trying to link using a 64 bit machine. I could compile my application using the cflag -m32. However, I just want to know if there is any command that will give me if the static library was built in either 32 or 64 bit mode?
Many thanks for any suggestions,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With