This topic might be helpful.
Note that the first line of a OpenFOAM file starts with /*-, not /--.
/*-
/--