C++ not finding class method definition
<p>I'm likely just doing something dumb, but I can't figure it out. I have a class called VariableList thats defined in a .h and a .cc file as follows: (some of the .cc file ommitted)</p>

<p>Header:</p>

<pre><code>#pragma once
#ifndef _VARIABLELIST_H_    
#define _VARIABLELIST_H_    
#include "Variable.h"
#include &lt;algorithm&gt;    
#include &lt;vector&gt;    
using namespace std;

class VariableList    
{
public:
    VariableList(void);
    VariableList(const VariableList &amp;other, bool setLiveness = false, bool liveVal = false);
    void Add(const simple_instr* instr);
    void Add(Variable var);
    void SortAndRemoveDuplicates();
    bool CompareLiveness(const VariableList &amp;var);

    int size();
    vector&lt;Variable&gt;::iterator begin();
    vector&lt;Variable&gt;::iterator end();

    //Operator Overloads
    Variable&amp; operator[] (int i);   

protected:  
    int currentID;
    vector&lt;Variable&gt; variableList;
        void Add(const simple_reg* ref, bool checkForDuplicated = true);
private:
};
#endif
</code></pre>

<p>.cc file</p>

<pre><code>#include "VariableList.h"
VariableList::VariableList(void)
{
    currentID = 0;
}

VariableList::VariableList(const VariableList &amp;other, bool setLiveness = false, bool liveVal = false) //: currentID(0), variableList(other.variableList)
{
    currentID = 0;
    variableList(other.variableList);
    if (setLiveness) 
    {
       for( int i = 0; i &lt; size(); i++ )
            variableList[i].isLive = LiveVal;
    }
}

//Rest Omitted as it doesnt matter for the problem I'm having
</code></pre>

<p>I'm attempting to use it as follows:</p>

<pre><code>#include &lt;iostream&gt;
extern "C" { 
#include &lt;simple.h&gt;
}
#include&lt;vector&gt;
#include&lt;string&gt;
#include "Instruction.h"
#include "Variable.h"
#include "VariableList.h"
using namespace std;
class VariableList;
simple_instr* do_procedure (simple_instr *inlist, char *proc_name)
{
    Instruction inst(*inlist);
    Variable var;
    cout &lt;&lt; var.GetID();
    VariableList varList;
    return inlist;
}
</code></pre>

<p>but whenever I try to compile, the compiler says "undefined reference to VariableList::VariableList()" as though it's not seeing my .cc file. Is there more I need to do for it to see my definititions in the .cc file?</p>
