title: Ogg vorbis crash
body: <p>I'm trying to add support for <em>Ogg Vorbis</em> in my project <em>(C++, VS 2010)</em>. I had no problem compiling <em>LibOgg + LibVorbis</em> to produce a static library.</p>
  
  <p>My procedure is this:</p>
  
  <p><strong>LibOgg</strong></p>
  
  <ul>
  <li>Download LibOgg</li>
  <li>Build LibOgg with dynamic solution (Release)</li>
  <li>Get a <em>libogg.lib</em> export and a <em>libogg.dll</em> in <em>/Release</em> folder</li>
  </ul>
  
  <p><strong>LibVorbis</strong></p>
  
  <ul>
  <li>Download LibVorbis</li>
  <li>Set appropriate <em>include + library</em> folders for <em>LibOgg</em></li>
  <li>Build LibVorbis with dynamic solution (Release)</li>
  <li>Get a <em>libvorbis.lib</em> and <em>libvorbisfile.lib</em> exports and <em>libvorbis.dll</em> and <em>libvorbisfile.dll</em> in <em>/Release</em> folder</li>
  </ul>
  
  <p><strong>My program</strong></p>
  
  <ul>
  <li>Set appropriate <em>include + library</em> folders for <em>Libogg + LibVorbis</em> .lib exports</li>
  <li>Place <em>.dll</em> in working directory</li>
  </ul>
  
  <p>The build succeeds but unlike the static build (which works), the dynamic build just crashes in the first <code>ov_open</code> call (which opens some .ogg file). I built lots of libraries <em>(GLEW, SQlite, etc.)</em> yet this one gives me the nuts.</p>