<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=4>I am trying to insert a bit of ogg vorbis decoding
into my MFC/C++ program and send it to my waveOut functions.</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4> // AudioFile.cpp</FONT></DIV>
<DIV><FONT face=Arial size=4> #include "vorbis/codec.h"<BR> #include
"vorbis/vorbisfile.h"</FONT></DIV>
<DIV><FONT face=Arial size=4> . . .</FONT></DIV>
<DIV><FONT face=Arial size=4> OggVorbis_File vf;<BR> FILE*
pFile;<BR> pFile = fopen("verdes_2.ogg", "rb");<BR> int err = err
= ov_open(pFile, &vf, NULL, 0);</FONT></DIV>
<DIV><FONT face=Arial size=4> . . .</FONT></DIV>
<DIV><FONT face=Arial size=4> ov_clear(&vf);</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>In my app's directory, I have</FONT></DIV>
<DIV><FONT face=Arial size=4>ogg.dll</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbis.dll</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbisfile.dll</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>and have added to my project these
files:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>ogg\ogg.h</FONT></DIV>
<DIV><FONT face=Arial size=4>ogg\os_types.h</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbis\codec.h</FONT></DIV>
<DIV><FONT face=Arial size=4>vorbis\vorbisfile.h</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>I am ignoring this library:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>MSVCRT.lib</FONT></DIV>
<DIV><FONT face=Arial size=4>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>"Use run-time library" is set to Multi-threaded
DLL.</FONT></DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=4>I have removed vorbisfile.lib, thinking that I
should be using vorbisfile.dll, and</FONT><FONT face=Arial size=4> am now
getting:</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>AudioFile.obj : error LNK2001: unresolved external
symbol _ov_clear<BR>AudioFile.obj : error LNK2001: unresolved external symbol
_ov_open</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Before my latest attempt to arrange all these
files, ov_open was giving me an exception. I still have some basics to
learn about libraries and linking, which no doubt is causing me my
difficulties. Could someone help me out of this mess?</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Steve R</FONT></DIV></BODY></HTML>