10kv负荷开关绝缘测试:这是什么问题啊

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 03:04:21
我用VC编译时出现这个问题,双击它对跳以最开关的#include<stdafx.h>这里.不知是怎么回事,如何解决啊,谢谢.
1. d:\c++\workmate\workmate.cpp(4) : fatal error C1083: Cannot open precompiled header file: 'Debug/workmate.pch': No such file or directory
2. 在重建时遇到这样的问题.

Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/workmate.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错.

你把 #include <stdafx.h> 换成 #include "stdafx.h" 这样试试

因为这个文件是在当前目录下,另外那个PCH的文件是自动生成的估计不可能出现找不到,肯定是代码或设置有问题,按我说的方法试试吧!

祝你好运!

很明显是 头文件的问题
1. 大概意思是 没有打开头文件 并且 没有找到'Debug/workmate.pch目录
2.外部符号 __endthreadex
和__beginthreadex 错误

解决:查看头文件stdafx.h里的定义 是不是缺少文件 什么的

把编译选项写成use mfc in a shared dll或者use mfc in a static library 试试