Comments, how-to's, examples, tools, techniques and other material regarding .NET and related technologies.
Monday, March 24, 2008
unresolved external symbol ?.cctor@@$$FYMXXZ
This error is usually related to upgrading Managed C++ project from Visual Studio 2003 to Visual Studio 2005. It is easy to resolve by removing a few options from both the compiler and linker, then recompiling the project.
For the compiler remove the /ZI flag (don't confuse with /Zi). In the project properties pages choose "Configuration Properties", then "C/C++", then "Command Line". In the bottom part of the page you'll see "Additional Options". Remove /ZI from there if you have it at all.
Next, go to "Linker", then "Command Line". Remove /NOENTRY and /NODEFAULTLIB from there if you have it at all.
In all cases make sure you do this for all configurations not just the debug or the release configuration.
More details about the context and background are available here.
Thank you very much. Totally accurate help. This is getting rarer, I've noticed :)
ReplyDeleteSearched MS Knowledgebase all morning, wish I came here first, excellent tip.
ReplyDeleteWorked like a charm!
ReplyDeleteThank you
ReplyDeleteTHANK-YOU!
ReplyDeleteThis was so helpful. Thank you!
ReplyDeleteThanks a ton. Was helpful in migrating to Visual Studio 2010 as well.
ReplyDeleteVisual Studio 2010:
ReplyDeleteDecember 2010 ... hello, I'm back!
None of the above alterations fix this error.
Very nice help and very easy to understand. Thanks a lot.
ReplyDeleteManni is the MAN !!!!
ReplyDelete...and another happy customer. Thanks, Manni. By the way, I was in your country in February, (north island) and It. Is. Gorgeous. Did the Tongariro Crossing... :-)
ReplyDeleteThanks a lot, I went around in circles for an hour !
ReplyDelete