C++ inlining class methods causes undefined reference

The body of an inline function needs to be in the header so that the compiler can actually substitute it wherever required. See this: How do you tell the compiler to make a member function inline?

Leave a Comment