-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Sadly the current release does not build with "old MinGW" any more (last tested with 4.4.0, which worked out of the box):
cd wincon && make INFOEX=N CHTYPE_64=Y DEBUG=Y DLL=Y DLLNAME=libpdcurses LIBNAME=libpdcurses.dll"
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/addch.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/addchstr.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/addstr.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/attr.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/beep.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/bkgd.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/border.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/clear.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/color.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/debug.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/delch.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/deleteln.c
gcc -c -Wall -Wextra -pedantic -g -DPDCDEBUG -I.. -DPDC_DLL_BUILD ../pdcurses/getch.c
../pdcurses/getch.c: In function 'PDC_millisecs':
../pdcurses/getch.c:439:5: warning: implicit declaration of function 'clock_gettime' [-Wimplicit-function-declaration]
clock_gettime( CLOCK_REALTIME, &t);
^
../pdcurses/getch.c:439:20: error: 'CLOCK_REALTIME' undeclared (first use in this function)
clock_gettime( CLOCK_REALTIME, &t);
^
../pdcurses/getch.c:439:20: note: each undeclared identifier is reported only once for each function it appears in
make: *** [getch.o] Error 1
Command exited with code 2and the only workaround is to either adjust the makefile (because PDCCFLAGS only applies to osdir, but not srcdir, otherwise make PDCCFLAGS=-DHAVE_GETTIMEOFDAY would have worked) or getch.c.
Originally posted by @GitMensch in #344 (comment)
Metadata
Metadata
Assignees
Labels
No labels