Search code examples
cblackberry-playbookqnxoggvorbis

Having trouble with undefined reference to error


I know there are a lot of posts related to this particular error but nothing seems to be helpful in ,my case, So please forgive me for that I am posting question after almost 2 days of research on google:(

I am working on a game for blackberry playbook, and for sound/audio I am using openal along with OggVorbis, I have downloaded blackberry port of OggVorbis from following source

https://github.com/blackberry/OggVorbis

but its integration with game is creating issue like it says undefined reference to ov_clear that is in vorbisfile.h and vorbisfile.c is compiled and I can see ov_clear in libvorbis.a qnx momentics IDE, and I have added libvorbis in my game but still I am getting these errors

Please help


Solution

  • Somehow I did figure it out what was the problem. I am a C#.net programmer where it does not matter you are adding reference to a library project or main project, but here you can't add a reference to a static library in an other static library, that was the reason for these errors. Thats my understanding may be someone could guide me in a better detail way.

    Regards Ahsan