Unresolved Externals when using source code from another folder
<p>I'll explain my problem as best as possible.</p>

<p>Basically i have two projects in one visual studio 2010 solution. One project is the source code for a game engine that i'm making, and it compiles into a .dll. The second project just contains the main.cpp file which includes files from the Engine project. I've setup the test project to include the Engine project's source directiry (headers and cpp) but i am getting unresolved externals. All my engine classes are inside a namespace.</p>

<pre><code>main.cpp

#include &lt;Engine/input.h&gt;
#include &lt;Engine/graphics.h&gt;
#include &lt;Engine/sound.h&gt; 

using namespace Engine; 

int main()
{
    Renderer* renderer = new Renderer();
    etc.
}
</code></pre>

<p>Then in my code it would look like</p>

<pre><code>Graphics.h

namespace Engine
{
    class Renderer 
    {
         void draw();
    }
}

Graphics.cpp

namespace Engine
{
    void Renderer::draw()
    {
    }
}
</code></pre>

<p>The source for the engine as mentioned above is in a separate folder to main.cpp. I've tried putting all the code into main.cpp's folder and i can compile with no problems. Having it in another folder causes the unresolved externals for the functions i use in main.cpp.</p>

<p>Thanks for any help!</p>
