在写数据采集卡程序时,我用厂方提供的*.c和*.h,但最后编译会出现
e:\程序\initialize\iso813.c(78) : fatal error C1010: unexpected end of file while looking for precompiled header directive
请大家指教!我使用的开发平台是win2000+vc6.0代码在:http://www.vchelp.net/cndevforum/subject_view.asp?subject_id=62514&forum_id=34
e:\程序\initialize\iso813.c(78) : fatal error C1010: unexpected end of file while looking for precompiled header directive
请大家指教!我使用的开发平台是win2000+vc6.0代码在:http://www.vchelp.net/cndevforum/subject_view.asp?subject_id=62514&forum_id=34
解决方案 »
- 价格阶梯信息表该如何存储呢?
- 请问下Subversion,怎么文档里面修改过了,图标没有发生变化
- 哪有无界面的安装WINPCAP的程序了?
- 在菜单上多加一项目,想通过次项目关闭程序,因该怎么做
- 急!!!!谁知道《数据结构(C语言版本)>> 这本书的下载地址?能下马上给分!!!!
- 问如何取字符串前2位。 (零点前散分)
- 菜鸟求救:两个很简单的问题?
- 我强烈建议: 让微软开发中文版Visual C++, 同意者来签名吧,等满一万人我就把这个帖子交到微软中国总部去。
- 求教个临界区CRITICAL_SECTION的问题!!
- 怎么使用CFileDialog类
- vc高手请注意,有一个exe的进程,我在程序中启动他以后,如何用程序的方法让他停止或销毁,谢谢。
- 很简单的问题,可是想不通!!!
fatal error C1853: 'Debug/Initialize.pch' is not a precompiled header file created with this compiler
Compile时我也遇到过,Build一次后就不在出现这个问题了。
在 ISO813中有如下定义
#define WORD unsigned int
而在WIN32中int为32位,所以会出现operand size conflict
解决办法: 把此句注掉,或改成 #define WORD unsigned short //c++中的定义
另外把汇编中用到的变量由int类型改成WORD型。但我修改后,出现如下错误!
Compiling...
ISO813.C
Linking...
Initialize.obj : error LNK2001: unresolved external symbol "unsigned short __cdecl ISO813_Check_Address(unsigned short)" (?ISO813_Check_Address@@YAGG@Z)
ISO813.OBJ : error LNK2001: unresolved external symbol _ISO813_TimerDelay
Debug/Initialize.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.Initialize.exe - 3 error(s), 0 warning(s)
{
#include "*.h"
}