Category : 32bit-64bit

In the easy case, when the program is independent of any external data-base, one could write something of the form: #include <stdint.h> #if UINTPTR_MAX == 0xffffffff /* 32-bit */ typedef some_type_for_32_bit_version Type; #elif UINTPTR_MAX == 0xffffffffffffffff /* 64-bit */ typedef some_type_for_64_bit_version Type; #endif And continue to work with the desired type. Now suppose the program ..

Read more

Currently I’m trying to build a library from source on Ubuntu 16.04 using gnu autotools, I’ve tried the following ./configure CFLAGS="-m32" CXXFLAGS="-m32" && make but that returns and error saying that the linker doesn’t understand the file format(which I assume is a 64/32 bit issue) ./configure –build x86_64-pc-linux-gnu –host i386-pc-linux-gnu && make but when I ..

Read more