Executing a macro from a built application

Dear ROOTers,
if inside a compiled application I put the statement
gROOT->LoadMacro(“macro.cxx++”) and the macro.cxx file contains non standard #include statements, it suffices to put before this statement a gSystem->SetIncludePath(“the_required_path”). I have noticed that this does not work if I do the same but remove the ++ from the LoadMacro statement, that is, if I rely to CINT only instead of ACLIC. Is there a way to achive the same functionality? Thanks,


To pass include directory to CINT itself use:gROOT->ProcessLine(".include XYZ/XYZ");