Game Development Community

Need help with ogg

by Kristjan "Strahd" Hlaj · in Torque Game Engine · 02/03/2003 (1:49 pm) · 2 replies

Based on the stuff I read on this forums I did everything correctly but it won't compile! This is the error I get:
--------------------Configuration: Torque Demo - Win32 Release--------------------
Linking...
audio.obj : error LNK2001: unresolved external symbol "public: static class AudioStreamSource * __cdecl AudioStreamSourceFactory::getNewInstance(char const *)" (?getNewInstance@AudioStreamSourceFactory@@SAPAVAudioStreamSource@@PBD@Z)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: __thiscall OggVorbisFile::~OggVorbisFile(void)" (??1OggVorbisFile@@QAE@XZ)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: int __thiscall OggVorbisFile::ov_clear(void)" (?ov_clear@OggVorbisFile@@QAEHXZ)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: __int64 __thiscall OggVorbisFile::ov_pcm_total(int)" (?ov_pcm_total@OggVorbisFile@@QAE_JH@Z)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: struct vorbis_info * __thiscall OggVorbisFile::ov_info(int)" (?ov_info@OggVorbisFile@@QAEPAUvorbis_info@@H@Z)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: int __thiscall OggVorbisFile::ov_open(class Stream *,char *,long)" (?ov_open@OggVorbisFile@@QAEHPAVStream@@PADJ@Z)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: __thiscall OggVorbisFile::OggVorbisFile(void)" (??0OggVorbisFile@@QAE@XZ)
audioBuffer.obj : error LNK2001: unresolved external symbol "public: long __thiscall OggVorbisFile::ov_read(char *,int,int,int *)" (?ov_read@OggVorbisFile@@QAEJPADHHPAH@Z)
../example/torqueDemo.exe : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.

torqueDemo.exe - 9 error(s), 0 warning(s)

Could somebody please tell me what am I doing wrong.

#1
02/04/2003 (8:15 am)
Looks like you missed a step in the instructions.. Look like you're missing one of the included source files for the reosurce from your project.
#2
02/04/2003 (8:37 am)
if u use vc6 o vc7, u must link well the headers of ogg and vorbis and the lib. control the linker settings and c++ settings.