Issues with Rtypes.h

I am facing issues with Rtypes.h, which calls some other root headers that call some functions that are not defined in the scope:

QUOTE(name) gives me error with the first underscore, and somewhere the right bracket after name is missing, which generates a syntax error.
Also, it is giving me an error that R__likely is not declared in this scope. Is that meant to be a double underscore between R and likely?

These errors have occurred multiple times. Once these are resolved, I can hopefully find other errors, because the screen buffer has overflowed.

_Thanks, Neera

You can easily get the whole “log” using something like this:
cmake ... 2>&1 | tee -a cmake.out.txt
make ... 2>&1 | tee -a make.out.txt
your_executable ... 2>&1 | tee -a your_executable.out.txt