What I see in the first trial when opening the workspace is this:
Project: "NetHackW"=.\build\NetHackW.dsp - Package Owner=<4>
in the workspace file which is wrong as the patch "build" does not exist (and the dsp file has a different case).
It seems those files are not really up-to-date which is bad. So it might not even be an error with C::B but with a broken project file. But I'll see what I can do...
Hi Morten:
In order to compile nethack343 with Code::Blocks on windows, I excute "\sys\winnt\nhsetup.bat" first, then it will copy nethack VC6 workspace file in the nethack root directory, make build directory, and copy all the necessary VC6 project files and nmake makefiles into the build directory. Please see:
http://nethack.wikia.com/wiki/CompilingBesides copy and change the include file "rpcndr.h" form mingw32 into nethack include directory, we also should define macro _WIN32_IE >= 0x0300 in nethackw project file to let "win/win32/mhmenu.c" passed.
I could build some parts of nethack projects with code::blocks, but I found code::blocks doesn't import the shell commands to excute files after building. I see that code::blocks seems to ignore the dependency of these projects when importing VC6 workspace file. Please see:
http://nethack.wikia.com/wiki/Makedefs. We have to build makedefs first to create some files that project nethackw needs, but when I press "build workspace" in code::blocks, it will build nethackw project first.
Thanks for your concernning.