Table of Contents

'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: