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.
Labels:
Tools
Subscribe to:
Post Comments (Atom)
12 comments:
Thank you very much. Totally accurate help. This is getting rarer, I've noticed :)
Searched MS Knowledgebase all morning, wish I came here first, excellent tip.
Worked like a charm!
Thank you
THANK-YOU!
This was so helpful. Thank you!
Thanks a ton. Was helpful in migrating to Visual Studio 2010 as well.
Visual Studio 2010:
December 2010 ... hello, I'm back!
None of the above alterations fix this error.
Very nice help and very easy to understand. Thanks a lot.
Manni is the MAN !!!!
...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... :-)
Thanks a lot, I went around in circles for an hour !
Post a Comment
All comments, questions and other feedback is much appreciated. Thank you!