If you're seeing unresolved externals for static ctors (like the one below), you likely need to add the CRT libraries (msvcmrt.lib msvcrt.lib) to your project as additional dependencies (besides mscoree.lib). You can do this via the MC++ property sheet on the Linker|Input page.
Error 1 error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ"
I'm blogging this so I don't forget - I've run into this on numerous occasions. Here's the original post where I found the solution. Hope this saves somebody some frustration!
Posted
Feb 21 2006, 04:03 PM
by
keith-brown