My program crashes while calling ov_read()
Hello. I have problem with function ov_read() and with libraries. I wrote some ogg player from tutorial on devmaster.net ([http://www.devmaster.net/articles/openal-tutorials/lesson8.php]). I tried to link dlls via ogg_d.lib, vorbis_d.lib and vorbisfile_d.lib. But when program arrives to function 'ov_read' program crashes. I don't know any reason. When I tried to link static libs, link program ld (i think) exit with many messages:
Warning: .drectve `-defaultlib:LIBCMT ' unrecognized
Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized
...
and then many messages with twxt "undefined reference" (I see the path of other computers in this messages). I use IDE Code::Blocks with GNU tools includeing mingw32 compiler and ld linker. First i built the libraries under Visual C++, and then i tried use libs in oggvorbis-sdk... but everything stayed same.