# Forum:Cannot compile Nethack/SlashEm using tiles.
&lt; Forum:Watercooler

I've been trying to compile NetHack and Slash'Em from the source files but cannot get them to compile with the graphical tile set.
I am using Windows 7, unpacked the source files using 7-Zip and used MinGW to compile.  My goal is to play a slightly modded Slash'Em with the graphical tile set.
Everything compiles and works fine when I leave the graphical options on default.
I followed everything in the Compiling topic, including moving and editing rpcndr.h for NetHack.
For Slash'Em, I followed the instructions provided:

Run the Setup file in \sys\winnt
Change the Makefile and config.h to use/define MSWIN_GRAPHICS
Run the install.bat I made (almost the same as the one mentioned in the NetHack compile guide)
When that didn't work, I tried various things I saw mentioned in posts/forums/whatever I thought might do it...  Of the stuff I can remember:

I tried moving and editing rpcndr.h as mentioned in the NetHack wiki compile guide.
I tried copying win32api.h to \src and \include as mentioned in the wiki's Ask an Expert #5
I tried both of the previous things at once.
I tried a solution for a corrupted tiles.bmp mentioned on the old wiki. (Something about the compiler writing tiles.bmp two bytes too long)
I tried placing gltile16.png and gltile16.map from normal Slash'Em install into the folder that is supposed to hold the compiled SlashEm.
Another question, possibly related to this or may help out, is it possible to get a log of the compile?
Thank you for listening and possibly helping me out.
206.239.33.97 02:26, 27 April 2013 (UTC)

"When that didn't work" - what exactly happened? Game compiled without tiles? Compile failed (how?)? Produced exe crashes on start? Computer exploded? Bulwersator (talk) 05:12, 27 April 2013 (UTC)
(Just a little note: @IP: you might want to use some kind of list for those   
-separated lines. @Bulwersator: Please remember to use&nbsp;:'s for talk page indentation.)
What is the output from the compiler/how does it not work, as Bulwersator asked?
(To get a "log", you could redirect output somehow, I suppose, or just copy the output from the compiler.) —bcode&nbsp;talk&nbsp;|&nbsp;mail 11:38, 27 April 2013 (UTC)
(Is that the correct formatting for lists?)
When I compile NetHack, it gives me the file in the binary folder.  When I try to run it, it says (each with it's own popup window) "Program initialization has failed." "Report the following error to the NetHack bugs mail address."  "cannot load tiles bitmap"
If this helps, the NetHackW.exe that is generated is 4,822 KB.
When I compile SlashEm, the folder to put the game in is created but nothing is in it.
How would I redirect the output?  I cannot copy it from the compiler, it automatically closes once it's done.
Thank you for the quick response, 206.239.33.97 18:54, 27 April 2013 (UTC)
"cannot load tiles bitmap" - it seems that you are missing file with tiles. Have you compared folder produced by your compile and folder of downloaded game? Compile proces of UnNetHack requires manual copying of tile file, maybe the same is true for vanilia/SLASH'EM? Bulwersator (talk) 21:19, 27 April 2013 (UTC)
(The list formatting is correct, but you don't need the   