When compiling the RetroCode SDK on a 64bit GCC, the resulting binaries will not behave correctly. This is triggered by GCC makeing a 64bit variable out of a long int.
There are two options; the trivial way and the hard way - as usual ;).....
1st: force GCC to use 32bit on a long int by adding "CFLAGS=-m32" to the compilation flags
2nd: define proper datatypes for 32bit integers that work on both, 32bit and 64bit systems. Then find and replace all incorrectly used long int-usages with that new datatype.
As a quick fix, I will add that CFLAGS workaround to the building environment.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=559680
Originator: YES
There are two options; the trivial way and the hard way - as usual ;).....
1st: force GCC to use 32bit on a long int by adding "CFLAGS=-m32" to the compilation flags
2nd: define proper datatypes for 32bit integers that work on both, 32bit and 64bit systems. Then find and replace all incorrectly used long int-usages with that new datatype.
As a quick fix, I will add that CFLAGS workaround to the building environment.
possibly fixed - at least fixed in many places. needs further testing.