Macro not compiling?

Hi,

I am having a problem compiling a macro because aclic cannot find a shared library, even though it was loaded.

Here is the output of my root session, I’ve added some comments in bold.

I am using root v5.32/01

many thanks for any help

// Load the shared library - it returns 0 so that should be ok
root [0] cout<Load("…/common/lib/libSP24sharedLite.so")<<endl;
0
//Need some includes
root [1] gROOT->ProcessLine(".include …/common/include/");
//Ignore some errors
root [2] gSystem->AddIncludePath("-Wno-unused -Wno-shadow -Wno-unused-parameter");
//Create a dummy variable defined in libSP24sharedLite.so - this just convinces me that the library is loaded
root [3] VATraceData a
// Try to compile my macro. Note the error below Library not loaded: lib/libSP24sharedLite.so
root [4] .L dumpRunHeader.C++
Info in TUnixSystem::ACLiC: creating shared library /Users/peter/code/tmvaProj/headAsMe/vegas/macros/./dumpRunHeader_C.so
dlopen error: dlopen(/Users/peter/code/tmvaProj/headAsMe/vegas/macros/./dumpRunHeader_C.so, 10): Library not loaded: lib/libSP24sharedLite.so
Referenced from: /Users/peter/code/tmvaProj/headAsMe/vegas/macros/./dumpRunHeader_C.so
Reason: image not found
Load Error: Failed to load Dynamic link library /Users/peter/code/tmvaProj/headAsMe/vegas/macros/./dumpRunHeader_C.so
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Sorry - just realized I got help with this exact problem previously