VC6.0 出现failed to (or don't know how to) build 原因及解决方法

Posted VIPWTL

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VC6.0 出现failed to (or don't know how to) build 原因及解决方法相关的知识,希望对你有一定的参考价值。

http://blog.sina.com.cn/s/blog_a37606de01016kit.html

 

在VC++6.0中出现failed to (or don‘t know how to) build ‘D:\DIB类\CDib.cpp该如何解决呢 ?
 
原因是这个类是在别的工程中建立的,后来通过加入文件加入本工程的,当这个工程被复制到别的目录或者该文件原来在的工程换了位置就无法编译通过过了。
 
解决办法:找到××.dsp文件(××为工程名),用记事本打开,找到如下:

SOURCE="..\DIB类\CDib.cpp"
# End Source File
# Begin Source File
SOURCE=.\ImgProcess.cpp
# End Source File
# Begin Source File

SOURCE=.\ImgProcess.rc
# End Source File
# Begin Source File

SOURCE=.\ImgProcessDoc.cpp
# End Source File
# Begin Source File

SOURCE=.\ImgProcessView.cpp
# End Source File
# Begin Source File

SOURCE=.\MainFrm.cpp
# End Source File
# Begin Source File

对SOURCE="..\DIB类\CDib.cpp"修改,将其修改为SOURCE=.\CDib.cpp

然后将CDib.cpp找到后加入工程目录下即可

以上是关于VC6.0 出现failed to (or don't know how to) build 原因及解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Failed to mount component: template or render function not defined.

[Vue warn]: Failed to mount component: template or render function not defined.

iOS 苹果开发证书失效的解决方案(Failed to locate or generate matching signing assets)

iOS 苹果开发证书失效的解决方案(Failed to locate or generate matching signing assets)

Python安装问题之One or more issues caused the setup to fail.Windows7安装Python3.7

Laravel5.6安裝:Warning: require(../vendor/autoload.php): failed to open stream: No such file or direct