[CLAM] using LIBMAD with Visual C++: LINKING ERROR: unresolved external symbols

felber.michael at gmx.net felber.michael at gmx.net
Thu Nov 24 02:17:41 PST 2005


Hi all,

CLAM uses libmad so I donwloaded the libmad.lib form the CLAM download area.

I tried to use the libmad High Level API (example file minimad.c from
underbit), but got following errors building a solution under Visual C++ 7:

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.

What is wrong there?

I copied the libmad.lib into my Visual C\lib directory.
My project includes the mad.h as well. I set the path (VC++ directories) to
all the other header files coming along with libmad.

So what is missing? I also created a libmad.dll and put in my
windows/system32 directory.

I tried to make this with Eclipse+CDT as well (using the mingw compiler).
Got the same error messages.

Thanks in advance


Michael







More information about the clam-users mailing list