title: Strange linker error in C++
body: <p>I'm trying to use the code from this project from CodeProject:</p>
  
  <p><a href="http://www.codeproject.com/Articles/587629/A-Delaunay-triangulation-function-in-C" rel="nofollow">http://www.codeproject.com/Articles/587629/A-Delaunay-triangulation-function-in-C</a></p>
  
  <p>The problem is that the function which should be used in my project is:</p>
  
  <pre><code>WORD* BuildTriangleIndexList (void *pointList, float factor, int numberOfInputPoints, int numDimensions, int clockwise, int *numTriangleVertices)
  </code></pre>
  
  <p>which has a body inside the <code>.cpp</code> 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.</p>
  
  <p>So, I've tried to add the declaration to the header, and it compiles correctly, but the linker gave me:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Thanks in advance.</p>