Thanks @JoachimPileborg. An unedited error log does not contain anything useful, and it should have! A comment led me to a problem and solution ... remove -Wfatal-errors from my makefile .
19:17 >>> gcc -Wfatal-errors main.c main.c:2:17: error: variable or field 'myfunction' declared void compilation terminated due to -Wfatal-errors.
and removing -Wfatal-errors ...
19:18 >>> gcc main.c main.c:2:17: error: variable or field 'myfunction' declared void main.c:2:17: error: 'doesntexist' was not declared in this scope
The problem is resolved.
For those who say βwhy use -Wfatal-errors in the first place?β: I usually donβt want all errors to be the first ones that others can trigger. In this case, it seems that the errors are thrown out of order, or at least in an unexpected order - I assume that the compiler will encounter the error 'doesntexist' was not declared .
source share