vorbisfile - segmentation fault
I am trying to write a simple program that uses vorbisfile shared library. But I get a segmentation error when I execute my program. My code is:
Code:
#include <iostream> g++ -lvorbisfile ogg.cpp and I receive a Segmentation fault error if the song exists when the application is run. Can you help me with this? |
The error is that you pass an uninitialized pointer to an 'OggVorbis_File' object, while the function expects an already existing object of this kind.
The following should get you closer to what you want: Code:
OggVorbis_File song; |
All times are GMT -5. The time now is 11:24 PM. |