title: How can I solve the error concerning libogg
body: <pre><code>#include &lt;iostream&gt;  
  #include &lt;assert.h&gt;  
  #include &lt;fstream&gt;  
  #include &lt;map&gt;  
  #include &lt;ostream&gt;  
  #include "ogg.h"  
  using namespace std;  
  #pragma comment(lib,"libogg.lib")enter code hereenter
  void readogg();
  void readogg(){
  
      ifstream stream;
      ifstream file("invitation.ogg", ios::in | ios::binary);
      ogg_sync_state state;
      ogg_sync_init(&amp;state);
  
      ogg_page page;
      if (ogg_sync_pageout(&amp;state, &amp;page) != 1)
      {
          char* buffer = ogg_sync_buffer(&amp;state, 8092);
          assert(buffer);
          file.read(buffer, 8092);
          int bytes = stream.gcount();
          ogg_sync_wrote(&amp;state, bytes);
      }
      ogg_stream_state s_state;
      ogg_packet pack;
  
      ☆ ogg_stream_pagein(&amp;s_state, &amp;page);
      ogg_page_packets(&amp;page);
      ogg_stream_packetout(&amp;s_state, &amp;pack);
  }
  </code></pre>
  
  <p>This is my code what I was invisible mending. I have another code about main but it have not a problem. I debugged step by step, so I think ☆ code might have a error and the result might do not connects or saves information of 'invitation.ogg' file.</p>
  
  <p>I couldn't find answer anywhere and this is my final chance keeping on this code. I'm not Thanks to read my question and I really hope to find my answer.</p>