Hi!
I was thinking of having a function that takes an unknown variable, so this is what I have tried:
class cMeshObject
{
public:
cMeshObject();
~cMeshObject();
template <class VERTEX_STRUCT>
int Create(VERTEX_STRUCT *mesh_vertices, int size_t);
int Draw();
};
//This is how the description looks:
template <class VERTEX_STRUCT>
cMeshObject::Create(VERTEX_STRUCT *mesh_vertices, int size_t);
{
//..
}
Unfortunately I get an unresolved external error
error LNK2001: unresolved external symbol "public: int __thiscall cMeshObject::Create(struct s3DVERTEXTEX *,int)" (?Create@cMeshObject@@QAEHPAUs3DVERTEXTEX@@H@Z)
.\Debug/WindowShell.exe : fatal error LNK1120: 1 unresolved externals
Could anyone help me out with this and correct my mistake?
thx!