'class' type redefinition, already included ifndef/define/endif
<p>New to c++ and confused. I've looked up dozens of similar issues and every solution is to add <code>#pragma once</code> or <code>#ifndef/#define/#endif</code>, however it doesn't seem to be the case for me. I have a tic tac toe board source file <em>tttBoard.cpp</em>, as seen below:</p>

<pre><code>#include "stdafx.h"
#include "tttBoard.h"
#include &lt;string&gt;

class tttBoard {

    enum sVal {sEmp,sX,sO};
    sVal gBoard[3][3];
    bool isX;

    tttBoard::tttBoard() {
    }

    void Draw() {
    }

    void Move(int x, int y) {
    }

    char* getValue(int x, int y) {}

};
</code></pre>

<p>and the respective header file, <em>tttBoard.h</em>:</p>

<pre><code>#ifndef tttBoard_h
#define tttBoard_h

class tttBoard {
    public:
        tttBoard();
        void            Draw();
        void            Move(int x, int y);
        char*           getValue(int x, int y);
    private:
        enum sVal {
        sEmp,
        sX,
        sO
        };

        sVal            gBoard[3][3];
        bool            isX;
};

#endif
</code></pre>

<p>However when compiling I come across the following errors:</p>

<pre><code>tttboard.cpp(5): error C2011: 'tttBoard' : 'class' type redefinition
tttboard.h(4) : see declaration of 'tttBoard'
</code></pre>

<p>Any ideas?</p>
