error C2065: 'CR_HASTE_MELEE' : undeclared identifier
<p>I am having problems referencing an Enumeration from one header file to another.</p>

<p>I have "<strong>Unit.h</strong>" which contains:</p>

<pre><code>enum CombatRating
{
    CR_HASTE_MELEE              = 17,
    CR_HASTE_RANGED             = 18,
    CR_HASTE_SPELL              = 19,
};
</code></pre>

<p>Then "<strong>Object.h</strong>" which contains:</p>

<pre><code>    void ApplyPercentModFloatValue(uint16 index, float val, bool apply)
    {
        float value = GetFloatValue(index);
        ApplyPercentModFloatVar(value, val, apply);
            if (apply &amp;&amp; index == CR_HASTE_MELEE &amp;&amp; value &gt; 130.86f)
                value = 130.86f;
        SetFloatValue(index, value);
    }
</code></pre>

<p>When I build my project, I receive "error C2065: 'CR_HASTE_MELEE' : undeclared identifier". I tried an include for "Unit.h" within "Object.h" but that gives me loads of errors too.</p>

<p>Is there any way to reference the Enum across header files so that a percentage can be applied to "CR_HASTE_MELEE"?</p>

<p>Thanks</p>
