I'm trying to use the code from this project from CodeProject:
http://www.codeproject.com/Articles/587629/A-Delaunay-triangulation-function-in-C
The problem is that the function which should be used in my project is:
WORD* BuildTriangleIndexList (void *pointList, float factor, int numberOfInputPoints, int numDimensions, int clockwise, int *numTriangleVertices)
which has a body inside the .cpp
file, but no declaration in the header, so using the code as-is, I obviously get a compilation error complaining that it can't find the function.
So, I've tried to add the declaration to the header, and it compiles correctly, but the linker gave me:
Errore 1 error LNK2019: riferimento al simbolo esterno "unsigned short * __cdecl BuildTriangleIndexList(void *,float,int,int,int,int *)" (?BuildTriangleIndexList@@YAPAGPAXMHHHPAH@Z) non risolto nella funzione "protected: virtual void __thiscall TutorialApplication::createScene(void)" (?createScene@TutorialApplication@@MAEXXZ) C:\Progetti\TestShader\TestShader\TutorialApplication.obj TestShader
Thanks in advance.