Files
nethack/sys/winnt
nhmall 35fc46e3eb missing constants on mingw build fix
Errors seen during build:
o/windmain.o:windmain.c:(.rdata$.refptr.FOLDERID_ProgramData[.refptr.FOLDERID_ProgramData]+0x0): undefined reference to `FOLDERID_ProgramData'
o/windmain.o:windmain.c:(.rdata$.refptr.FOLDERID_LocalAppData[.refptr.FOLDERID_LocalAppData]+0x0): undefined reference to `FOLDERID_LocalAppData'
o/windmain.o:windmain.c:(.rdata$.refptr.FOLDERID_Profile[.refptr.FOLDERID_Profile]+0x0): undefined reference to `FOLDERID_Profile'
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [Makefile:849: ../binary/NetHack.exe] Error 1

DEFINE_KNOWN_FOLDER is using this particular definition in the mingw
header files:

rather than this one:

So, the known folder values that recent code is using such as
FOLDERID_ProgramData, FOLDERID_LocalAppData, and FOLDERID_Profile are
being declared as external constants.

That is why the error is a link error. We need to include -luuid on
the link command line because those external constants are defined
in uuid.lib.
2019-11-02 09:23:34 -04:00
..
2018-11-11 10:29:52 -05:00
2018-09-10 21:13:10 +03:00
2018-05-16 23:06:44 -04:00
2018-05-16 23:06:44 -04:00
2002-02-12 23:00:27 +00:00
2019-03-13 19:55:43 -04:00
2019-04-09 00:41:12 -04:00
2019-10-27 23:12:11 -04:00
2015-05-06 22:04:27 -04:00
2018-11-30 16:00:24 -05:00
2019-10-05 16:49:34 -07:00
2019-10-27 23:12:11 -04:00
2019-10-29 21:28:39 -07:00