LNK2019 unresolved external symbol
<p>I am a beginner with C++ working with cocos2dx framework. I am getting an error, that I think might be caused by improper linkage to the function contained in the dll lib.</p>

<p><img src="http://i.stack.imgur.com/jJP4Y.png" alt=""></p>

<p>line 39 in screenshot causes the compiler error (commented out it compiles)</p>

<pre><code>CCSize pixelSize= this-&gt;GetGridSize();

CCSize GetGridSize(){
    return CCSize(m_Width*m_CellWidth+m_CellWidth/2,m_Height*m_CellHeight+m_CellHeight/2);
}

void HexGrid::populate(){
    CCSize pixelSize= this-&gt;GetGridSize();
    //XDebug::odprintf(L"Grid size in pixels: %d X %d", pixelSize.width, pixelSize.height);

    int i = 0;
    HexCell* pCell;
    for(unsigned int r = 0; r &lt; m_Width; r++){
        for(unsigned int c = 0; c &lt; m_Height; c++){
            pCell = new HexCell(this, r ,c);
            cells.push_back(pCell);
            XDebug::odprintf(L"Adding Cell #%d with grid XY of %dX%d",i++, r, c);
        }
    }
}
</code></pre>

<p>What is causing this error and how do i solve it? Any pointers would be appreciated, as i am at wits end googling it.</p>
