Linker Error LNK2019 in Visual C++
<p>I have been encountering a linker error when attempting to call a class method from my main method. I have searched for an answer but nothing seems applicable to my issue, any help will be much appreciated.</p>

<h2>FileSystem.h</h2>

<pre><code>#ifndef FILE_SYSTEM_H
#define FILE_SYSTEM_H

#include &lt;fstream&gt;
#include &lt;string&gt;
#include &lt;random&gt;

#include "SortingAlgorithms.h"
#include "SortingAlgorithms.cpp"

using namespace std;

class FileSystem
{
private:
    ifstream inFile;
    ofstream outFile;

    template &lt;class T&gt;
    void fillArrays( T randomArray[], T sortedArray[], T backwardArray[], int size );

public:
    FileSystem();
    ~FileSystem();

    bool openFile(string fileName);
    void writeToFile(string output);
    void createTestFiles(string testFiles[]);

    template &lt;class T&gt;
    void fillArrayFromFile(T list[], int size);
};

#endif
</code></pre>

<h2>fillArrayFromFile</h2>

<pre><code>template &lt;class T&gt;
void FileSystem::fillArrayFromFile(T list[], int size)
{
    int i;

    for(i = 0; i &lt; size; i ++)
    {
        inFile &gt;&gt; list[i];
    }

    inFile.clear();
    inFile.seekg(inFile.beg);
}
</code></pre>

<h2>pa2.cpp</h2>

<pre><code>#include &lt;iostream&gt;
#include &lt;ctime&gt;
#include &lt;string&gt;
#include &lt;iomanip&gt;

#include "TimerSystem.h"
#include "FileSystem.h"

using namespace std;

int main()
{
    FileSystem file;
    int testArray[10];

    file.openFile("test-10-0.txt");
    file.fillArrayFromFile(testArray, 10);
}
</code></pre>

<h2>Error:</h2>

<pre><code>pa2.obj : error LNK2019: unresolved external symbol "public: void __thiscall FileSystem::fillArrayFromFile&lt;int&gt;(int * const,int)" (??$fillArrayFromFile@H@FileSystem@@QAEXQAHH@Z) referenced in function _main
C:\Users\Matt\Google Drive\Programming\Data Structures &amp; Algorithms\PA2-9-15-2012\Debug\PA2.exe : fatal error LNK1120: 1 unresolved externals
</code></pre>

<p>Thanks again. </p>
