Note that there are some explanatory texts on larger screens.

plurals
  1. POwhats wrong with this function? where did i make mistake?
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload