Main function defined in


I just stumbled over the fact that my code, which doesn’t have an int main() function linked successfully to an executable. This feature disappeared when removing -lHistFactory from the link options, and closer inspection reveals that there is a main function defined in

nm -C /afs/ | \grep main 00000000000e9720 T main

After superficial grep’ping around, I suspect this is coming from

means, that my falsely successfully linked executable is just another incarnation of hist2workspace.
Would it make sense to exclude hist2workspace.cxx from the creation of the shared libraries?


Hi Paul,

nice finding - thanks for sharing. Action taken: … 71690a3d9c