[原]将工程由VC6迁移到VS2005

为了不覆盖原VC6工程,将VC6工程的demo.dsp工程文件复制、改名为demo_vc8.dsp。用VS2005打开,选择转换、不备份。保存demo_vc8.vcproj,并删掉demo_vc8.dsp。编译。

下面是编译过程中遇到的错误及解决方式:

LINK : fatal error LNK1104: 无法打开文件“LIBCD.lib”
在连接的command line加/nodefaultlib:libcd。

error LNK2001: unresolved external symbol _errno
To fix this problem add a new blank C++ source file to your project, and insert the following code into it:

extern "C"
{
    int __mb_cur_max;
    //unsigned short* _pctype;
    int errno;
}

Do not add anything else to this file.

原文地址:https://www.cnblogs.com/techsunny/p/1216642.html