Adapting Unnamed Macro for Valgrind

I have finally solved this problem (after nearly a week of problems…)

My eventual solution kept the #preprocessor macros as before (with a separate #include “foo.C+” for CINT and #include “foo.C” for non-CINT). The “no matching constructor” error was resolved here: [url]Functor Issues when Compiling

The basic problem I was having was that ACLiC was hiding a whole bunch of stuff from me. The compiled components of my program (the _C.so files) are not easily loadable by hand for clang++, because it expects things named “libfoo.so” and such. I eventually learned to compile my own .o files from the .C files using clang++, then creating libfoo.so files from the .o files (including how to -L and -l to resolve dependencies), then finally compiling the macro that had my main() function. I eventually wrote a makefile to keep it better organized. My full explanation is here: http://www.phas.ubc.ca/~jfcaron/ROOTTricks.html#[[Compiling%20a%20ROOT%20macro%20with%20clang%2B%2B%2Fg%2B%2B%20%28with%20libraries%29]]

Jean-François