Jump to content
  • Advertisement
Sign in to follow this  
boboS

Ogg vorbis problems

This topic is 2608 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello.

I want to use Ogg Vorbis library to my project to load .ogg files as streams to DirectSound buffers. The problem is that i didn't found precompiled libraries and I downloaded the source from http://xiph.org/downloads.

I compiled all the files with Visual Studio 2010 to .libs.

For example I compiled vorbisfile.lib and link it to my project

[source]



#include "E:\SDK\libvorbis-1.3.2\include\vorbis\codec.h"
#include "E:\SDK\libvorbis-1.3.2\include\vorbis\vorbisenc.h"
#include "E:\SDK\libvorbis-1.3.2\include\vorbis\vorbisfile.h"


#pragma comment(lib, "vorbisfile.lib")
#pragma comment(lib, "ogginfo.lib")
#pragma comment(lib, "vorbisenc.lib")
#pragma comment(lib, "libogg_static.lib")

[/source]

The problem is that my project even if it links the lib file it acts like it doesnt exist.

[source]

1> All outputs are up-to-date.
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_info_init
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_idheader
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_headerin
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_block_init
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_init
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_packet_blocksize
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_page_continued
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_page_granulepos
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_info_blocksize
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_packetout
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_window
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_lapout
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_pcmout
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_sync_wrote
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_page_bos
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_blockin
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_sync_init
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_sync_reset
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_halfrate
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_read
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_trackonly
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_comment_clear
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_page_serialno
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_init
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_pagein
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_info_clear
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_sync_pageseek
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_reset
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_clear
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_sync_clear
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_sync_buffer
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_dsp_clear
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_restart
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_block_clear
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_reset_serialno
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_synthesis_halfrate_p
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_stream_packetpeek
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _vorbis_comment_init
1>vorbisfile.lib(vorbisfile.obj) : error LNK2001: unresolved external symbol _ogg_page_eos
1>E:\C++ Projects\active\test\cpp_class\Release\cpp_class.exe : fatal error LNK1120: 40 unresolved externals
1>
1>Build FAILED.


[/source]




So i compiled Vorbisenc.c vorbisfile.c and ogg files.

What I'm missing ? I should compile ALL .c files from the folder to get all functions working ?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!