Menu

#22 64bit GCC issue

open-fixed
building (7)
8
2009-01-17
2008-09-03
No

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.

Discussion

  • Till Toenshoff

    Till Toenshoff - 2008-09-03

    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.

     
  • Till Toenshoff

    Till Toenshoff - 2009-01-17

    possibly fixed - at least fixed in many places. needs further testing.

     
  • Till Toenshoff

    Till Toenshoff - 2009-01-17
    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.