REFERENCE should be defined in config.h, see config.default.h. While this can be solved easily, this error also hints your config.h doesn't work as expected.
... you can copy & paste such errors, much easier to read than screenshots of the full screen.
... you can copy & paste such errors, much easier to read than screenshots of the full screen.