The fact of the matter is that actually there hasn't to be any necessity to check something in the code itself because what I am compiling wasn't written by me. It's SDK from the game developers. They just gave it to public. So, it should work and all code which is inside is correct.
Moreover, I was doing everything due to the instruction -
https://kingpin.info/?p=compiling-with-codeblocksThe problem is the author of the article says he has no errors - just foolow the instruction and compilations goes perfctly. When I try doing the same, I have some problems. Firstly, I had issues with missing .lib and .h files, now I solved it by adding some additional paths. I guess this error (game.def) can be solved with a few mouse clicks, too but I don't know what it can be. Neither does the author himself cause he doens't have an idea why I am dealing with all of this stuff while he isn't...
If you want you can try following that instruction, too, I can give that SDK that contains those .c and .h files for compilation. If it works for you perfectly - the problem is at my side. If you have some troubles, the guide is broken.
Attaching the build log and build messages.