> 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 <email deleted>
WINPFLAG= -DTILES -DMSWIN_GRAPHICS
NHRES = $(O)winhack.res
WINPINC = -I$(WIN32)
+COMCTRL = comctl32.lib
!ELSE
WINPORT = $(O)nttty.o
WINPHDR =
WINPFLAG= -DWIN32CON
NHRES = $(O)console.res
WINPINC =
+COMCTRL =
!ENDIF
TILEUTIL16 = $(UTIL)\tile2bmp.exe
$(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)
<<