I have an old VC 6 project that I'm moving to VS 2012. After some pushing and shoving, I have the Debug configuration compiling, linking, and running fine. However, the Release build fails at link time with this:
error LNK2001: unresolved external symbol "class CThreadLocal<class _AFXCTL_AMBIENT_CACHE> _afxAmbientCache" (?_afxAmbientCache@@3V?$CThreadLocal@V_AFXCTL_AMBIENT_CACHE@@@@A)
I am linking both with the same .libs. What's going on? Is _AFXCTL_AMBIENT_CACHE in a different Release library?
More info: dumpbin shows this for mfc110d.lib:
but it's not there in mfc110.lib