EVC包含.c文件出错.
用EVC的mfc编译一个程序. 其中包含了两个.c文件. 编译后出错如下提示.
ide_access.c
d:\harddisk\harddisk\test\ide_access.c(563) : fatal error C1010: unexpected end of file while looking for precompiled header directive
ide_base.c
d:\harddisk\harddisk\test\ide_base.c(127) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing clarm.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\ARMV4IDbg\ide_access.sbr': No such file or directory
Error executing bscmake.exe.
D:\Harddisk\HardDisk\Test\ide_base.h(4): Could not find the file harddisk.h.
D:\Harddisk\HardDisk\Test\ide_access.c(17): Could not find the file harddisk.h.
D:\Harddisk\HardDisk\Test\ide_base.h(4): Could not find the file harddisk.h.
Test.exe - 3 error(s), 0 warning(s)
点击出错提示后跳到ide_access.c文件的最后一行. 我在其中的ide_access.h中加了
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
还是不行. 请教是哪里原因?