Compiling under windows with Visual C++: unresolved external symbols
<[email protected]> Thu, 24 Nov 2005 01:31:52 +0100
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have problems working with libmad 0.15.1b under Windows and Visual C++: error LNK2019: unresolved external symbol _mad_decoder_finish referenced in function "int __cdecl decode(unsigned char const *,unsigned long)" error LNK2019: unresolved external symbol _mad_decoder_run referenced in function "int __cdecl decode(unsigned char const *,unsigned long)" error LNK2019: unresolved external symbol _mad_decoder_init referenced in function "int __cdecl decode(unsigned char const *,unsigned long)" All in all 5 such error messages. Why? I downloaded libmad 0.15.1b and built the libmad.lib with Visual C++ (libmad comes with a msvc++ subdirectory), copied it to my Visual C\lib directory. My project includes the mad.h as well. So what is missing? I also created a libmad.dll and put in my windows/system32 directory. I have been dealing with this problem since 4 days now without any solution. Thanks in advance Michael