I hope someone can help me out with the following:
Some years ago I Glk-fied my XVAN console interpreter to a Glk version. I downloaded the WindowsGlk-148.zip by David Kinder and made windows and linux Glk versions of my interpreter. I used the Code::Blocks IDE for the build.
Now I want to release the source code, but with a makefile to build the executable, so people don’t have to install Code::Blocks to build it.
On my windows system I have mingw32-make, which I also use to build the console version of the interpreter. I changed the makefile from the console version to link against the Glk libraries and then found that the Glk.dll and Glk.lib cannot be used with mingw32-make (something with an unsupported format).
So, next I dumped the Glk.dll to find the names of the 360 functions that are in it. I made a .DEF file with these names and used mingw32’s dlltools to create a libGlk.a lib that can be handled by mingw32-make.
With this new library the executable builds and there were no undefined references.
But, when I start the application it throws an “Application was unable to start correctly (0xc000007b) error. Solutions I found vary from restarting windows to reinstalling the .net framework.
But I suspect there’s something wrong with the application. The build I made with Code::Blocks runs fine, only this mingw build does not.
I know Glk also requires ScaleGfx.dll. I have it in the application directory together with Glk.dll and the application is not complaining about any of them.
I’v been working on this for some time now and I think I need help to get this solved. Any ideas?