Original Post
I have two packages; call them Main and Support. I would like to make Main use a class that is defined in Support. To that end, my Main.cc file has these lines in it :
#include "Support/SupportClass.hh"
(...)
SupportClass* mySupport = new SupportClass();
Now, I can compile this, but when I try to link I get the error Main.cc:lineNumber: undefined reference to SupportClass::SupportClass() Well, the argumentless constructor is certainly defined, in SupportClass.cc. What can I do (at the makefile level, I think) to so that make becomes aware of it? There is probably something trivially simple that I've forgotten, but I've been banging my head at this for two hours and am no longer seeing the trees; the bark is getting in the way.