I was upgrading a project from VS 2008 to VS 2010. I ran into following unresolved link error.
LINK : error LNK2001: unresolved external symbol __forceCRTManifestCUR
After doing some web search on the error...following link did point me into right direction.
http://social.msdn.microsoft.com/Forums/da-DK/vcgeneral/thread/af6796af-a1bf-4904-9923-15101956d882
But adding "int __forceCRTManifestCUR=0;" this to main file didn't work for me.
What I found out is that my original VS 2008 project properties under Linker->Command Line had additional option of /include:__forceCRTManifestCUR. This option worked fine in VS 2008 build but was giving link error in VS 2010.
After taking out this option, I was able to compile fine in VS 2010.
Question I have is...
Seems you have to write
extern "C" int _forceCRTManifestCUR=0
for it to work in C++, the original article forgets to mention this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With