C++ Exception/Inheritance error LNK2019
<p>Well, I was trying to fix this program, and I keep getting the errors :</p>

<p>Error   1   error LNK2019: unresolved external symbol "public: __thiscall ExcedeRangoInferior::ExcedeRangoInferior(void)" (??0ExcedeRangoInferior@@QAE@XZ) referenced in function _main</p>

<p>Error   2   error LNK2019: unresolved external symbol "public: __thiscall ExcedeRangoSuperior::ExcedeRangoSuperior(void)" (??0ExcedeRangoSuperior@@QAE@XZ) referenced in function _main </p>

<p>Here is the code:
The program asks for a value, and it throws an exception if the value exceeds a minimal or a maximal range</p>

<pre><code>    #include &lt;iostream&gt;
#include &lt;exception&gt;


class ExcepcionRango : public std::exception{
protected:

    ExcepcionRango();
public:
    virtual const char* lanzarExcepcion()=0;

};

class ExcedeRangoInferior : public ExcepcionRango{
public:
    ExcedeRangoInferior();
    const char* lanzarExcepcion() throw(){ //throw exception
        return "Value out of minimal range";
    }
};

class ExcedeRangoSuperior : public ExcepcionRango{
public:
    ExcedeRangoSuperior();
    const char* lanzarExcepcion() throw(){ //throw exception
        return "value out of maximal range";
    }
};

int obtainValue(int minimo, int maximo){ //obtain value

    int valor; //value
    std::cout&lt;&lt;"Introduce a value between "&lt;&lt;minimo&lt;&lt;" and "&lt;&lt;maximo&lt;&lt;" : "&lt;&lt;std::endl;
    std::cin&gt;&gt;valor;
    return valor;

};

int main(){
    ExcedeRangoSuperior* exS = new ExcedeRangoSuperior();
    ExcedeRangoInferior* exI= new ExcedeRangoInferior();
    int min=3; 
    int max=10;
    int valor=0; //value
    try{
        valor=obtainValue(min,max);
    }catch(int){
        if(valor&lt;min){

            exS-&gt;lanzarExcepcion();
        }
        if(valor&gt;max){

            exI-&gt;lanzarExcepcion();
        }
    }

    delete exS;
    delete exI;
    std::cin.get();
}
</code></pre>

<p>PD:This was a homework, and its objective was to fix its errors, and get it running properly, and as I saw with the last thing I asked here, it seems that this code can show more errors, like syntax errors, maybe design and structural errors as well.</p>
