I'm having a problem making and include file with templates. When I have a function with template in my main file:
template
int Triangulate(T * const Poly, fTRIANGLE * triangles, int corners)
it works ok, but if I put it in a separate file and include it:
fTRIANGLE *triangles = new fTRIANGLE[8];
POINT *Fig = new POINT[10];
Triangulate(Fig, triangles, 10);
Error: Error: Unresolved external 'Triangulate(const POINT*,fTRIANGLE*,int)' referenced from module main.cpp
[edited by - Koobazaur on May 17, 2004 10:38:16 PM]