Do I need MingW installed?
I think so, yes. Does the c file have to be in a module?
No. What are bbTypes?
Take a look at '../mod/brl.mod/blitz.mod/blitz_types.h'. I think it has all the definitions for standard BlitzMax types in there, which I would assume are used to actually pass objects without conversion.