It seems to be impossible to define an inline member function externally with GCC. When attempting to do so, the linker returns an error.
Here is how I attempted to do it:
Header file:
-----------------
class C
{
public:
void foo();
};
CPP file:
-------------
inline void C::foo()
{
[...]
}
