johnsonshu
V2EX  ›  GCC

genssource 编译过不去啊

  •  1
     
  •   johnsonshu · Dec 19, 2019 · 6934 views
    This topic created in 2365 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   ·   2544 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:05 · PVG 00:05 · LAX 09:05 · JFK 12:05
    ♥ Do have faith in what you're doing.