The error messages need to be understood by Geany to get the line numbers, clearly the compiler you are using does not generate errors in a format Geany understands.
You can teach it to understand other formats by setting a regular expression as described in the manual [here](https://www.geany.org/manual/current/index.html#build-settings-section).