c++ - Error when statically building a windows application -


i have application compiles , works fine when dynamically link everything, when want have static build of it not compile.

in visual studio 2010 set use mfc in static library option.

when error:

error 1 error lnk2001: unresolved external symbol _wwinmain@16 libcmt.lib(wwincrt0.obj)

i have tried adding libcmt.lib additional library, doesn't change anything.

any ideas on how fix problem?

from message it's missing winmain implies me piece of project being built application , not library.

try full rebuild , ensure relevant options set build static library. believe libcmt.lib should linked final application, not library.


Comments