In your source code file, before the very first line with any “R__*” macro, you must “#include” anything from ROOT (so that these macros are defined), e.g. add:
#include "Rtypes.h"
In your “Makefile” add:
LIBS += $(shell gsl-config --libs)
Just for future reference purposes … Compile Macro with GSL libraries