Strange C++ linking issue - unresolved external symbols but header file is linked
<p>I'm trying to do something very simple in C++, however I'm running into issues with Visual Studio and I can't figure out why.</p>

<p>I have two projects, one which contains a header file named JNIUtils.h. Its content is very barebones -</p>

<pre><code>#pragma once

class JNIUtils
{
public:
    JNIUtils( void );
    ~JNIUtils( void );
};
</code></pre>

<p>and its implementation is very simple as well -</p>

<pre><code>#include "stdafx.h"

#include "JNIUtils.h"

JNIUtils::JNIUtils( void )
{

}

JNIUtils::~JNIUtils( void )
{

}
</code></pre>

<p>All I'm trying to do is create an object of this newly defined type in another project. In the project where I'm including this header file, I've gone to </p>

<p>Project Properties > Configuration Properties > VC++ Directories > Include Directories</p>

<p>I added an entry with the path to where the header file I'm including resides (JNIUtils.h)</p>

<p>The CPP file I'm trying to create an instance of this object in looks as follows :</p>

<pre><code>#include "stdafx.h"
#include "JNIUtils.h"

using namespace System;

int main(array&lt;System::String ^&gt; ^args)
{
    JNIUtils *util = new JNIUtils();
    Console::WriteLine(L"Hello World");
    return 0;
}
</code></pre>

<p>When I try to compile compile however I get the following errors :</p>

<pre><code>Error   3   error LNK1120: 2 unresolved externals   C:\zcarter\UDK\WebSvcClients\Debug\JNITester.exe    JNITester
Error   2   error LNK2019: unresolved external symbol "public: __thiscall JNIUtils::JNIUtils(void)" (??0JNIUtils@@$$FQAE@XZ) referenced in function "int __clrcall main(cli::array&lt;class System::String ^ &gt;^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)   C:\zcarter\UDK\WebSvcClients\JNITester\JNITester.obj    JNITester
Error   1   error LNK2028: unresolved token (0A000009) "public: __thiscall JNIUtils::JNIUtils(void)" (??0JNIUtils@@$$FQAE@XZ) referenced in function "int __clrcall main(cli::array&lt;class System::String ^ &gt;^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z)  C:\zcarter\UDK\WebSvcClients\JNITester\JNITester.obj    JNITester
</code></pre>

<p>Can anyone tell me what I'm doing wrong here?</p>
