User Tools

Site Tools


gaudi:undefinedreference

'Undefined Reference' while linking

Problem

Even if compiling an algorithm / tool may work without error, the linker may complain about 'undefined reference to `LHCb::aClass::aMethod(some parameters)'.

Solution

This error message occurs, if the .h-file is found, but the libraries in the path do not contain the binaries for the class. There are two possible reasons:

  • The corresponding library is not included in the requirements file. You then have to add to your requirements file something like 'use packageGroup v* package'.
  • The corresponding library is somehow corrupt, does not correspond to the actual version of the project, …. There is no easy way out (recompile the library?).
gaudi/undefinedreference.txt · Last modified: 2009/12/07 09:49 by decianm