I compile and link a third-party library with GCC 4.7.3. I try understand what triggers the undefined symbol error:
Undefined symbols for architecture x86_64:
"void MyObject::myFunction<....>(...) const", referenced from:
void NameSpace::AnotherFunction<some_particular_arguments>(...) in some_source.cc.o
NameSpace::AnotherFunction is obviously sitting in some_source.cc, but can I get some info from compiler/linker on where/who instantiate this function with some_particular_arguments?
The build is done using CMake and there is NameSpace_AnotherFunction.inst with template instantiations for the corresponding function, but this particular set of template arguments is not there.
Obviously there are no instantiations in some_source.cc, otherwise i would not ask ;)
Thus I wonder if there is a way to get info on something like Point of Instantiation (or similar) for that particular template arguments list of the function AnotherFunction?