Windows Console not loading games

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • capperil
    Rookie
    • Jul 2019
    • 4

    Windows Console not loading games

    Hi,

    I have compiled a pure console angband.exe using these instructions; http://angband.oook.cz/forum/showthread.php?t=9160

    It looks very nice, and appears to work... however, when I quit and restart the game it doesn't pick up the save file, simply inviting me to create another character.

    I checked lib/user/save and it is defintitely making a save file as expected.



    edit;

    I found that 'angband -u' will force it to pick up a save. However, there is still no default save. I found a couple of other issues to:-
    bizarrely casting magic missile crashes the game to command line
    Backspace doesn't function when writing character names
    angband -l is broken, producing spurious and continuous output.


    I do have a workaround - I've compiled a linux console in Ubuntu for Windows - but I'd be interested in any ideas what is wrong with my windows version, it looked really nice in ConEmu. I'd also be interested if there's any way to set the default save files on the console versions.

    Thanks.
    Last edited by capperil; July 18, 2019, 00:50.
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2987

    #2
    Why don't you simply use the GCU port? It works well for me.
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

    Comment

    • capperil
      Rookie
      • Jul 2019
      • 4

      #3
      Originally posted by PowerWyrm
      Why don't you simply use the GCU port? It works well for me.
      Apologies for being dense but I'm not sure what you mean. I thought the only option to run in a console on a windows machine was to compile it with ncurses?

      I found this relatively straight forward on linux by my windows 10 console seems a bit broken.

      Comment

      • capperil
        Rookie
        • Jul 2019
        • 4

        #4
        I had another go at it with fresh src but it hasn't fixed anything. In both cases I used the source code from rephial.org. Anyway, this time I captured the output from mingw32... should I worry about the warnings?

        Code:
        $ mingw32-make -f Makefile.win CONSOLE=yes MINGW=yes
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cave.o cave.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cave-map.o cave-map.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cave-square.o cave-square.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cave-view.o cave-view.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cmd-cave.o cmd-cave.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cmd-core.o cmd-core.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cmd-misc.o cmd-misc.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cmd-obj.o cmd-obj.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o cmd-pickup.o cmd-pickup.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o datafile.o datafile.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o debug.o debug.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o effects.o effects.c
        effects.c: In function 'effect_handler_BIZARRE':
        effects.c:4217:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
           {
           ^
        effects.c:4235:3: note: here
           case 7:
           ^~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o game-event.o game-event.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o game-input.o game-input.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o game-world.o game-world.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o generate.o generate.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o gen-cave.o gen-cave.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o gen-chunk.o gen-chunk.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o gen-monster.o gen-monster.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o gen-room.o gen-room.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o gen-util.o gen-util.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o grafmode.o grafmode.c
        grafmode.c: In function 'parse_graf_pref':
        grafmode.c:77:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
          strncpy(mode->pref, parser_getstr(p, "prefname"), 32);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        grafmode.c: In function 'parse_graf_size':
        grafmode.c:68:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
          strncpy(mode->file, parser_getstr(p, "filename"), 32);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o guid.o guid.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o init.o init.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o load.o load.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o message.o message.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-attack.o mon-attack.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-blows.o mon-blows.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-desc.o mon-desc.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-init.o mon-init.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-list.o mon-list.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-lore.o mon-lore.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-make.o mon-make.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-move.o mon-move.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-msg.o mon-msg.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-predicate.o mon-predicate.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-spell.o mon-spell.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-summon.o mon-summon.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-timed.o mon-timed.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o mon-util.o mon-util.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-chest.o obj-chest.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-curse.o obj-curse.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-desc.o obj-desc.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-gear.o obj-gear.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-ignore.o obj-ignore.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-info.o obj-info.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-init.o obj-init.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-knowledge.o obj-knowledge.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-list.o obj-list.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-make.o obj-make.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-pile.o obj-pile.c
        obj-pile.c: In function 'object_origin_combine':
        obj-pile.c:530:22: warning: this statement may fall through [-Wimplicit-fallthrough=]
            obj1->origin_race = obj2->origin_race;
            ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
        obj-pile.c:534:3: note: here
           case 2:
           ^~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-power.o obj-power.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-properties.o obj-properties.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-randart.o obj-randart.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-slays.o obj-slays.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-tval.o obj-tval.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o obj-util.o obj-util.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o option.o option.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o parser.o parser.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o randname.o randname.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-attack.o player-attack.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-birth.o player-birth.c
        player-birth.c: In function 'generate_stats':
        player-birth.c:776:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
             step++;
             ~~~~^~
        player-birth.c:784:4: note: here
            case 3:
            ^~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-calcs.o player-calcs.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-class.o player-class.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-history.o player-history.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-path.o player-path.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-quest.o player-quest.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-race.o player-race.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-spell.o player-spell.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-timed.o player-timed.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player-util.o player-util.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o player.o player.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o project.o project.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o project-feat.o project-feat.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o project-mon.o project-mon.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o project-obj.o project-obj.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o project-player.o project-player.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o score.o score.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o save.o save.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o savefile.o savefile.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o sound-core.o sound-core.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o source.o source.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o store.o store.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o target.o target.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o trap.o trap.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-birth.o ui-birth.c
        ui-birth.c: In function 'get_history_command':
        ui-birth.c:1029:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
             next = BIRTH_BACK;
             ~~~~~^~~~~~~~~~~~
        ui-birth.c:1031:4: note: here
            case 0:
            ^~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-command.o ui-command.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-context.o ui-context.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-curse.o ui-curse.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-death.o ui-death.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-display.o ui-display.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-event.o ui-event.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-game.o ui-game.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-help.o ui-help.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-history.o ui-history.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-init.o ui-init.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-input.o ui-input.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-keymap.o ui-keymap.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-knowledge.o ui-knowledge.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-map.o ui-map.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-menu.o ui-menu.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-mon-list.o ui-mon-list.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-mon-lore.o ui-mon-lore.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-obj-list.o ui-obj-list.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-object.o ui-object.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-options.o ui-options.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-output.o ui-output.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-player.o ui-player.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-prefs.o ui-prefs.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-score.o ui-score.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-signals.o ui-signals.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-spell.o ui-spell.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-store.o ui-store.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-target.o ui-target.c
        ui-target.c: In function 'target_set_interactive':
        ui-target.c:1120:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
               x = player->px;
               ~~^~~~~~~~~~~~
        ui-target.c:1123:6: note: here
              case 'o':
              ^~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o ui-term.o ui-term.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o wiz-debug.o wiz-debug.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o wiz-spoil.o wiz-spoil.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o wiz-stats.o wiz-stats.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o buildid.o buildid.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-bitflag.o z-bitflag.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-color.o z-color.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-dice.o z-dice.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-expression.o z-expression.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-file.o z-file.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-form.o z-form.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-quark.o z-quark.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-queue.o z-queue.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-rand.o z-rand.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-set.o z-set.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-textblock.o z-textblock.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-type.o z-type.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-util.o z-util.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o z-virt.o z-virt.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o main-gcu.o main-gcu.c
        main-gcu.c: In function 'Term_xtra_gcu':
        main-gcu.c:738:25: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
           case TERM_XTRA_NOISE: write(1, "\007", 1); return 0;
                                 ^~~~~
                                 fwrite
        main-gcu.c: In function 'Term_text_gcu':
        main-gcu.c:824:3: warning: implicit declaration of function 'mvwaddnwstr'; did you mean 'mvwaddnstr'? [-Wimplicit-function-declaration]
           mvwaddnwstr(td->win, y, x, s, n);
           ^~~~~~~~~~~
           mvwaddnstr
        main-gcu.c: In function 'init_gcu':
        main-gcu.c:935:3: warning: implicit declaration of function 'putenv'; did you mean 'setenv'? [-Wimplicit-function-declaration]
           putenv("ESCDELAY=20");
           ^~~~~~
           setenv
        At top level:
        main-gcu.c:484:13: warning: 'do_gcu_resize' defined but not used [-Wunused-function]
         static void do_gcu_resize(void) {
                     ^~~~~~~~~~~~~
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o main.o main.c
        gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include/ncurses -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -o angband.exe cave.o cave-map.o cave-square.o cave-view.o cmd-cave.o cmd-core.o cmd-misc.o cmd-obj.o cmd-pickup.o datafile.o debug.o effects.o game-event.o game-input.o game-world.o generate.o gen-cave.o gen-chunk.o gen-monster.o gen-room.o gen-util.o grafmode.o guid.o init.o load.o message.o mon-attack.o mon-blows.o mon-desc.o mon-init.o mon-list.o mon-lore.o mon-make.o mon-move.o mon-msg.o mon-predicate.o mon-spell.o mon-summon.o mon-timed.o mon-util.o obj-chest.o obj-curse.o obj-desc.o obj-gear.o obj-ignore.o obj-info.o obj-init.o obj-knowledge.o obj-list.o obj-make.o obj-pile.o obj-power.o obj-properties.o obj-randart.o obj-slays.o obj-tval.o obj-util.o option.o parser.o randname.o player-attack.o player-birth.o player-calcs.o player-class.o player-history.o player-path.o player-quest.o player-race.o player-spell.o player-timed.o player-util.o player.o project.o project-feat.o project-mon.o project-obj.o project-player.o score.o save.o savefile.o sound-core.o source.o store.o target.o trap.o ui-birth.o ui-command.o ui-context.o ui-curse.o ui-death.o ui-display.o ui-event.o ui-game.o ui-help.o ui-history.o ui-init.o ui-input.o ui-keymap.o ui-knowledge.o ui-map.o ui-menu.o ui-mon-list.o ui-mon-lore.o ui-obj-list.o ui-object.o ui-options.o ui-output.o ui-player.o ui-prefs.o ui-score.o ui-signals.o ui-spell.o ui-store.o ui-target.o ui-term.o wiz-debug.o wiz-spoil.o wiz-stats.o  buildid.o z-bitflag.o z-color.o z-dice.o z-expression.o z-file.o z-form.o z-quark.o z-queue.o z-rand.o z-set.o z-textblock.o z-type.o z-util.o z-virt.o main-gcu.o main.o -s C:/MinGW/lib/libncurses.a
        c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: warning: resolving _Sleep by linking to _Sleep@4
        Use --enable-stdcall-fixup to disable these warnings
        Use --disable-stdcall-fixup to disable these fixups
        copy angband.exe ..
                1 file(s) copied.
        copy win"\"dll"\"libpng12.dll ..
                1 file(s) copied.
        copy win"\"dll"\"zlib1.dll ..
                1 file(s) copied.

        Comment

        • PowerWyrm
          Prophet
          • Apr 2008
          • 2987

          #5
          Originally posted by capperil
          Apologies for being dense but I'm not sure what you mean. I thought the only option to run in a console on a windows machine was to compile it with ncurses?

          I found this relatively straight forward on linux by my windows 10 console seems a bit broken.
          You use PDCurses with windows, not ncurses. Just statically link pdcurses.lib with your console (using main.gcu as your main file) and it should be fine.
          PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

          Comment

          • capperil
            Rookie
            • Jul 2019
            • 4

            #6
            OK, Thanks for your help... However, I'm quite out of my depth here and not entirely sure what that means.
            I'm also a bit confusing as the instructions specifically state not to use pdcurses?

            Make sure you have the *ncurses* library installed. Contrary to what is written in the Makefile, pdcurses will not be sufficient. You need term.h, which only comes with ncurses. To do that, type mingw-get in a console, then select and install libncurses-dev
            Undetered, I removed ncurses and installed pdcurses using MinGW installation manager.

            As the compile instructions forewarn this didn't provide term.h, and promptly failed.

            It seems pdcurses3.4 has term.h - so i removed pdcurses from the MinGW installer and manually installed pdcurses3.4 from https://sourceforge.net/projects/pdc.../pdcurses/3.4/ with help from these instructions https://github.com/ve3wwg/cobcurses/...MinGW-pdcurses

            ...and amended the location of pdcurses in makefile.win

            PDCURSES_INC = C:/MinGW/PDcurses
            PDCURSES_LIB = C:/MinGW/lib/libpdcurses.a

            Now it is happy with term.h but curses.h throws an error...





            Code:
            $ mingw32-make -f Makefile.win CONSOLE=yes MINGW=yes
            gcc -DUSE_GCU -DWIN32_CONSOLE_MODE -IC:/MinGW/include -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=c99 -DUSE_PRIVATE_PATHS -DSOUND -O2 -I. -c -o main-gcu.o main-gcu.c
            In file included from h-basic.h:125,
                             from angband.h:18,
                             from main-gcu.c:20:
            c:\mingw\include\curses.h:85:23: error: two or more data types in declaration specifiers
             typedef unsigned char bool;    /* PDCurses Boolean type */
                                   ^~~~
            main-gcu.c: In function 'Term_xtra_gcu':
            main-gcu.c:738:25: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
               case TERM_XTRA_NOISE: write(1, "\007", 1); return 0;
                                     ^~~~~
                                     fwrite
            main-gcu.c: In function 'Term_text_gcu':
            main-gcu.c:824:3: warning: implicit declaration of function 'mvwaddnwstr'; did you mean 'mvwaddnstr'? [-Wimplicit-function-declaration]
               mvwaddnwstr(td->win, y, x, s, n);
               ^~~~~~~~~~~
               mvwaddnstr
            main-gcu.c: In function 'init_gcu':
            main-gcu.c:935:3: warning: implicit declaration of function 'putenv'; did you mean 'setenv'? [-Wimplicit-function-declaration]
               putenv("ESCDELAY=20");
               ^~~~~~
               setenv
            At top level:
            main-gcu.c:484:13: warning: 'do_gcu_resize' defined but not used [-Wunused-function]
             static void do_gcu_resize(void) {
                         ^~~~~~~~~~~~~
            Makefile.win:134: recipe for target 'main-gcu.o' failed
            mingw32-make: *** [main-gcu.o] Error 1

            Comment

            • PowerWyrm
              Prophet
              • Apr 2008
              • 2987

              #7
              That's because you use MinGW's version of curses still. The curses.h file should be used from PDCurses include directory.

              In my \curses folder, when I compile the GCU client, I have only the following files:
              - curses.h
              - panel.h
              - pdcurses.lib
              - term.h

              All these come from PDCurses.
              PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

              Comment

              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎