VS2010 error LNK2001: unresolved external in MFC static application

1.7k views Asked by At

I get this error in Visual Studio 2010 SP1, when I try to link a static MFC application with the libmp3lame.lib C++ library.

>nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
>nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc

How can I get rid of this error?

1

There are 1 answers

1
Jack Smith On

Make sure you're linking against the correct version of the runtime library (Multithreaded, Multithreaded DLL, Debug Multithreaded, Debug Multithreaded DLL etc).