By the way, I have not invoked any of the compiler flags.
Still, might be a good idea to take a look.
I added to the search paths of the compiler the include directory of my CS source folder, which in fact has no csconfig.h file.
This is because
csconfig.h is generated when CS is built (specifically, when running
configure).
Running a search I found that there is a csconfig.h in the folder csutil/win32 within the include folder
(still within the original source dir). That left me with fewer errors, in particular, the errors related to math.h.
Unfortunately, this file is for MSVC only, and does not work elsewhere.
Now what I did to resolve the problem was to point the search paths to the msys/local/include/crystalspace-1.2 folder, which does in fact contain a csconfig.h header. Now everything works like a charm.
Yes, the generated
csconfig.h is copied to the general include folder upon installation.
Now it seems to be that csconfig.h seems to be generated after compilation?
See above,
configure generates it. (Building on MSVC is different and does not involve running
configure, thus the build flags have to be manually maintained for it.)