This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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()
{
??? [...]
}

 		 	   		  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]