"unexpected token(s) preceding ': or {'; skipping apparent function body"
This error occurs after another error, for member functions defined inside their class.
Example
struct s1 { // in a cpp file s1(s1 func hello) { // error } };