Can't call C++ code from Root macro

Humm sorry, actually you did:#include "vmblock.h" void QLtest() { gROOT->ProcessLine(".L vmblock.cxx+"); which I missed at the last read. There is probably some confusion between the interpreted version (which your request in the first line) and the compiled version (which you request on the last line). To avoid this confusion try the following:#ifdef __CINT__ #include "vmblock.cxx+" #else #include "vmblock.cxx" #endif void QLtest() {

Cheers,
Philippe.