I am compiling under ubuntu and have not tried redhat.
I can take a look tomorrow but from the error,
In file included from ./Inc/FastLmmC.h:144,
from Src/Beta.cpp:2:
./Inc/Utils.h: In function ‘int _isnan(real)’:
./Inc/Utils.h:98: error: expected unqualified-id before ‘(’ token
My _guess_ is that you are not compiling with the c++ 0x library enabled and your compiler is not recognizing std::isnan().
If you don’t have an isnan() variant in your library, then the function can be implemented as
inline int _isnan( real x ) { return( x != x); }
It may not be as efficient, but that should not matter too much in our case.
-bobd-