I'm currently developing a 3d graphics engine for a school project, but yesterday I began experiencing trouble when I wanted to separate the interface from the implementation by placing them in separate files, now, the trouble is that I've inlined such parts of the program that would cause a noticable speed increase alternatively a size decrement, although, when I separated the interface and implementation the compiler seemed to belive that the functions which I have inlined were missing. I thought the problem might be me inlining the functions..it was..., but...isn't there any way of having the inlined functions in a source file which is separated from the implementation file. Here's some code to illustrate my problem:
This is the example interface file:
//----[Interface]------------------------------
class gc_SomeClass {
public:
inline gc_SomeClass();
inline ~gc_SomeClass();
// Some routines.
protected:
// Some data.
};
This is the sample implementation file.
//----[Implementation]----------------------
#include "SomeClass.h"
//------------------------------------------------
gcSomeClass::gcSomeClass() {
}
//------------------------------------------------
gcSomeClass::~gcSomeClass() {
}
//------------------------------------------------