From: nethack.allison Date: Tue, 18 Jul 2006 13:24:20 +0000 (+0000) Subject: win32 makefile gui build with wrote: X-Git-Tag: MOVE2GIT~941 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=557f94c83af11a1333a0af01e2dd94f044cfd5ca;p=nethack win32 makefile gui build with wrote: > Command line compile of tiled Nethack breaks, at the end, with an error: > > Linking.... > link /DEBUG /INCREMENTAL:NO /NOLOGO kernel32.lib > ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib user32.lib > gdi32.lib comdlg32.lib winspool.lib /STACK:2048 user32.lib > winmm.lib -out:..\binary\NetHackW.exe > @NetHackW.lnk winhack.o : error LNK2019: unresolved external symbol > __imp__InitCommonControlsEx@4 referenced > in function --- diff --git a/sys/winnt/Makefile.msc b/sys/winnt/Makefile.msc index 8cf839e69..f23787304 100644 --- a/sys/winnt/Makefile.msc +++ b/sys/winnt/Makefile.msc @@ -159,6 +159,7 @@ WINDLLS = WINPFLAG= -DTILES -DMSWIN_GRAPHICS NHRES = $(O)winhack.res WINPINC = -I$(WIN32) +COMCTRL = comctl32.lib !ELSE WINPORT = $(O)nttty.o WINPHDR = @@ -166,6 +167,7 @@ WINDLLS = $(GAMEDIR)\nhdefkey.dll $(GAMEDIR)\nh340key.dll $(GAMEDIR)\nhraykey.dl WINPFLAG= -DWIN32CON NHRES = $(O)console.res WINPINC = +COMCTRL = !ENDIF TILEUTIL16 = $(UTIL)\tile2bmp.exe @@ -610,7 +612,7 @@ $(NHRES): $(NTSYS)\console.rc $(NTSYS)\NetHack.ico $(GAMEFILE) : $(ALLOBJ) $(NHRES) $(O)gamedir.tag $(WINDLLS) @if not exist $(GAMEDIR)\*.* mkdir $(GAMEDIR) @echo Linking.... - $(link) $(lflagsGame) /STACK:2048 $(LIBS) -out:$@ @<<$(GAME).lnk + $(link) $(lflagsGame) /STACK:2048 $(LIBS) $(COMCTRL) -out:$@ @<<$(GAME).lnk $(ALLOBJ:^ =^ ) $(NHRES) <<