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.

12 comments:

slaphead99 said...

Thank you very much. Totally accurate help. This is getting rarer, I've noticed :)

Don Lahey said...

Searched MS Knowledgebase all morning, wish I came here first, excellent tip.

Anonymous said...

Worked like a charm!

Anonymous said...

Thank you

Anonymous said...

THANK-YOU!

Anonymous said...

This was so helpful. Thank you!

oom said...

Thanks a ton. Was helpful in migrating to Visual Studio 2010 as well.

Anonymous said...

Visual Studio 2010:

December 2010 ... hello, I'm back!

None of the above alterations fix this error.

Anonymous said...

Very nice help and very easy to understand. Thanks a lot.

Anonymous said...

Manni is the MAN !!!!

Pete Bosch said...

...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... :-)

Anonymous said...

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!