Hi,
I tested you script with A7.86.2, and the only problem I found is that the file "ctrlfonas.bmp" is missing (main.h line 64 - BMAP* ctrlfonas = "ctrlfonas.bmp";). I changed the filename with another one and it compiles fine. I've even added 255 more BMAP definitions

and there were no error.
NOTE: Comment out/delete line 64 in "main.h". It says, BMAP* ctrlfonas = "ctrlfonas.bmp"; Its not included nor is it needed

oops! missed that. So I can say that it compiles fine with A7 then.
I tested with A7 Com last version + patch, perhaps you sould reinstall 3DGS. It is also nice if you move to A8
Hope that helps you.
Best regards.