Symbol gR is not in the scope

I have this problem, although I have done all the required library installations. I have also tried to replace the header files from the source, still I get this error, when I’m in ACLiC to execute the very first ROOT-R interface example here:
root.cern.ch/drupal/content/how- … -interface

I have also posted a stackoverflow question, no answer still:

stackoverflow.com/questions/2250 … scope-root

Would it be easier for me to uninstall root and redo all the installation steps ( I have installed it manually ), or should I try to fix it?

Hello,

try compile using ACLiC with rootlogon.C macro in the compilation directory,
the rootlogon.C should have the next code.

{
#include <compilerdata.h>
gSystem->AddIncludePath(RINCLUDEPATH);
gSystem->AddLinkedLibs(RLINKEDLIBS);
}

some information about how rootlogon.C works.
http://krl.caltech.edu/Kamland/analysis/AKat_doc/rootlogon_howto.html

Best Regards
Omar.