I've found the problem, and it has nothing to do with wxWidgets.
Some time ago I wanted to set a default startup directory for cmd
so that I didn't always have to do a cd
after starting the terminal. I found a trick using the registry (as documented here and many other places) so that the command cd /D c:\home
is always executed when a new terminal window is started.
But I had no idea that nmake
executes the autorun command as well! So the first thing that happens is that nmake
changes directory to c:\home
and then tries to run from there, which obviously fails.