johnsonshu
V2EX  ›  GCC

genssource 编译过不去啊

  •  1
     
  •   johnsonshu · Dec 19, 2019 · 6869 views
    This topic created in 2344 days ago, the information mentioned may be changed or developed.
    左边是错误,右边是代码。
    我单纯就是下载了 gens 的 source,就编译一下啊。什么也没改。

    gens_core/cpu/68k/cpu_68k.c:27:3: error: initializer element is not constant
    {0xFF0000, 0xFFFFFF, (unsigned) &Ram_68k[0] - 0xFF0000},

    struct STARSCREAM_PROGRAMREGION M68K_Fetch[] = {
    {0x000000, 0x3FFFFF, (unsigned) 0x000000},
    {0xFF0000, 0xFFFFFF, (unsigned) &Ram_68k[0] - 0xFF0000},
    {0xF00000, 0xF0FFFF, (unsigned) &Ram_68k[0] - 0xF00000},
    {0xEF0000, 0xEFFFFF, (unsigned) &Ram_68k[0] - 0xEF0000},
    {-1, -1, (unsigned) NULL},
    {-1, -1, (unsigned) NULL},
    {-1, -1, (unsigned) NULL}
    };


    https://i.loli.net/2019/12/19/74oS8jfbBQuyRti.jpg
    Supplement 1  ·  Dec 20, 2019
    一晚上了 没人回答。现在想翻一下 k&r 的 c language program 找找了
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5169 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 08:33 · PVG 16:33 · LAX 01:33 · JFK 04:33
    ♥ Do have faith in what you're doing.