Reply 40 of 49, by kjliew
g++ -g -O2 -mno-ms-bitfields -static-libgcc -static-libstdc++ -s -o dosbox.exe dosbox.o winres.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/mame/libmame.a hardware/serialport/libserial.a libs/gui_tk/libgui_tk.a -L/mingw32/lib -lmingw32 -lSDLmain -lSDL -mwindows -lncurses -lpng -lz -lSDL_net -lopengl32 -lwinmm -lws2_32
I noticed that on 2019-06-30, ncurses is back for mingw-w64 native code, but it didn't remove PDCurses which was its replacement when it was gone. I did a manual removal of PDCurses to get back to ncurses. My earlier patch is no longer valid. You were actually linking with ncurses while the undefined references were for PDCurses.
You need to pay attention to how your source was configured and if it picked ncurses or PDCurses. Typical, I would prefer ncurses over PDCurses, but I haven't tried my build, since I don't usually need the debugger from DOSBox. I am at r4252, too.