Visual C++ 升级到 Visual Studio

把项目从visual C++ MFC移到visual studio 2013有许多东西需要修改,尤其是工程本身不小的时候。

到最后一步的错误: error LNK2001: unresolved external symbol __iob

解决方法:

 在工程里main函数所在的cpp文件中加入:

  #ifdef __cplusplus
  extern "C"
  #endif
  FILE _iob[3] = {__iob_func()[0], __iob_func()[1], __iob_func()[2]};

编译通过

11 May 2013 添加:

VC6++升级到MSVC2013有时候不能一下子成功,试一下先升级到MSVC2008, 再升级到MSVC2010, 然后升级到MSVC2013.

这样成功率高一点。

其他问题移步链接:VC6工程升级VS2013遇到的问题

原文地址:https://www.cnblogs.com/bruceyo/p/4367913.html