I'm using visual studio 2008 and I'm trying to make a C++ program that plays MP3 using the libwmp3 library. I tried doing a simple example they provided but I keep getting a link error.
Error 1 fatal error LNK1136: invalid or corrupt file C:\libwmp3-2.51-win\libwmp3.lib 1 mp3 test
I downloaded the library from here: http://www.inet.hr/~zcindori/libwmp3/index.html
As far as I know, I only need 3 files to load and use the DLL they provided, which is the LIB file, the Header file and the DLL file.
I was wondering is the LIB file not compatable with visual studio 2008 or is it really corrupted? I've downloaded it twice but I still get the same error.
Any help would be great, thanks!
There's something wrong with the LIB file, but I don't know what. When I used LibWMP3, I just shoved the source right into my own project. No complications. Increased the EXE size by 200KB though... >.>
If you don't mind increasing EXE size, I suggest you just do that.
You don't need any library to play MP3 ! (on Windows, no external libraries are needed, everything is included in Win32 api)
There are a dozen of native methods to read MP3 , WMA, etc ... (DS, MM apis, COM, ...)