whats wrong with this function? where did i make mistake?
<p>I have this function declaration and its defination:</p>

<h2>declaration</h2>

<pre><code>void laodFromFile(
      string const&amp; fileName,
      Frames&amp; frames,
      ostream&amp;  log =std::clog);
</code></pre>

<p>defination:</p>

<pre><code>void loadFromFile(
        string const&amp;   fileName,
        Frames&amp;         frames,
        ostream&amp;        log =std::clog
        )
    {
        using std::endl;
        using std::ifstream;

        string const    streamDescription   = "text data file " + fileName;

        log &lt;&lt; "Opening " &lt;&lt; streamDescription &lt;&lt; " for reading..." &lt;&lt; endl;

        ifstream    stream( fileName.c_str() );
        (!stream.fail())
            || throwX( S() &lt;&lt; "Error opening " &lt;&lt; streamDescription &lt;&lt; "." );

        loadFrom( stream, frames, streamDescription, log );
    }
</code></pre>

<p><strong>error:</strong></p>

<pre><code>Error   1   error LNK2019: unresolved external symbol "void __cdecl soundData::laodFromFile(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;,class soundData::Frames &amp;,class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;)" (?laodFromFile@soundData@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAVFrames@1@AAV?$basic_ostream@DU?$char_traits@D@std@@@3@@Z) referenced in function "void __cdecl cppMain(int,char const * const * const)" (?cppMain@@YAXHQBQBD@Z) C:\lacture\loading frames\loading frames\main.obj   loading frames
</code></pre>

<p>what is wrong with that function? any one can guide me...
Expecting a good response thanks</p>
