First post, by Nobuo T
Hi,
Tried whole day (and what a fine day I spend hacking at my laptop with increasing frustration for that matter 😜 ) to compile 0.70 with --enable-debug and now I'm completely lost again. 😅
I've got WinXP SP2 running here and tried compiling with MinGW 5.1.3 and MSYS 1.0.10
1st problem I got was the configure script (yup, I ran it more than once) didn't find the pdcurses 3.0 I compiled with MinGW. I solved this with trial&error and ended up copying the pdcurses.h to MinGW/include/ and the whole /win32 directory from pdcurses to the MinGW /lib-directory and renamed the pdcurses.a and panel.a each to .lib.
Next error was some "}" on line 1611 AFAIR in pdcurses.h that didn't seem to belong there, so I just removed it. No errors with this file after that.
Instead I got errors in debug.cpp and debug.h now:
Making all in debug
make[3]: Entering directory `/hdd/sources/dosbox-0.70/src/debug'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I/usr/local/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -g -O2 -MT debug.o -MD -MP -MF ".deps/debug.Tpo" \
-c -o debug.o `test -f 'debug.cpp' || echo './'`debug.cpp; \
then mv -f ".deps/debug.Tpo" ".deps/debug.Po"; \
else rm -f ".deps/debug.Tpo"; exit 1; \
fi
../../include/debug.h: In function `bool DEBUG_Breakpoint()':
../../include/debug.h:21: error: previous declaration of `bool DEBUG_Breakpoint()' with C++ linkage
debug.cpp:611: error: conflicts with new declaration with C linkage
../../include/debug.h: In function `bool DEBUG_IntBreakpoint(Bit8u)':
../../include/debug.h:22: error: previous declaration of `bool DEBUG_IntBreakpoint(Bit8u)' with C++ linkage
debug.cpp:621: error: conflicts with new declaration with C linkage
../../include/debug.h: In function `bool DEBUG_ExitLoop()':
../../include/debug.h:25: error: previous declaration of `bool DEBUG_ExitLoop()' with C++ linkage
debug.cpp:649: error: conflicts with new declaration with C linkage
../../include/debug.h: In function `void DEBUG_Enable(bool)':
../../include/debug.h:23: error: previous declaration of `void DEBUG_Enable(bool
)' with C++ linkage
debug.cpp:1650: error: conflicts with new declaration with C linkage
../../include/debug.h: In function `void DEBUG_DrawScreen()':
../../include/debug.h:20: error: previous declaration of `void DEBUG_DrawScreen()' with C++ linkage
debug.cpp:1665: error: conflicts with new declaration with C linkage
../../include/debug.h: In function `void DEBUG_CheckExecuteBreakpoint(Bit16u, Bit32u)':
../../include/debug.h:24: error: previous declaration of `void DEBUG_CheckExecuteBreakpoint(Bit16u, Bit32u)' with C++ linkage
debug.cpp:1903: error: conflicts with new declaration with C linkage
../../include/debug.h: In function `void DEBUG_SetupConsole()':
../../include/debug.h:19: error: previous declaration of `void DEBUG_SetupConsole()' with C++ linkage
debug.cpp:1926: error: conflicts with new declaration with C linkage
debug.cpp: At global scope:
debug.cpp:2135: error: expected `}' at end of input
make[3]: *** [debug.o] Error 1
make[3]: Leaving directory `/hdd/sources/dosbox-0.70/src/debug'
make[2]: *** [all-recursive] Error 1
...
So what now? 😕
Any sugestions are apreciated. 😀