When you upgrade a C++ project from Visual Studio 2003 to Visual Studio 2005, the conversion may decide to add the /Zl (upper case Z, lower case L) option to the compiler command line. This appears in the project properties at Configuration Properties -> C/C++ -> Command Line in the text box on the right. The result of this can be that the link fails with:
error LNK2001: unresolved external symbol "?.cctor@@$$FYMXXZ" (?.cctor@@$$FYMXXZ)
The solution is simply to remove /Zl from the text box. Note that /Zl can also be specified at Configuration Properties -> C/C++ -> Advanced by setting Omit Default Library Name to Yes (/Zl).