This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem with inline member functions
- From: Alexandre Almeida <meta dot lx at hotmail dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Tue, 7 Feb 2012 11:57:14 -0200
- Subject: Problem with inline member functions
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()
{
??? [...]
}