阅读:1560回复:4
请教高手
环境vc++ ,windriver
本人用windriver,根据其手册对本人的显卡做了一个驱动,产生两个组要的文件为disp_lib.h和disp_lib.c,将它们加入到本人的工程中。只是编译时总使提示以下错误,请帮忙。谢谢 d:\vc pratice\te\disp_lib.c(658) : fatal error C1010: unexpected end of file while looking for precompiled header directive Error executing cl.exe. |
|
沙发#
发布于:2005-02-17 17:34
如果在这个c文件最开头加一句:
#include <stdafx.h> |
|
|
板凳#
发布于:2005-02-18 08:13
通不过
Compiling... disp_lib.c d:\vc pratice\te\disp_lib.c(11) : fatal error C1853: 'Debug/te.pch' is not a precompiled header file created with this compiler Error executing cl.exe. te.exe - 1 error(s), 0 warning(s) |
|
地板#
发布于:2005-02-18 11:16
通不过 是你预编译头文件没有包含的问题,你可能工程设置有问题 |
|
|
地下室#
发布于:2005-02-18 11:35
谢谢回答
本人看了以前的帖子,将原文件改为.cpp后,又出现如下问题 ------------onfiguration: te - Win32 Debug----------------- Compiling... disp_lib.cpp Linking... disp_lib.obj : error LNK2001: unresolved external symbol _Stat2Str@4 disp_lib.obj : error LNK2001: unresolved external symbol _EventRegister@20 disp_lib.obj : error LNK2001: unresolved external symbol _EventUnregister@4 Debug/te.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. te.exe - 4 error(s), 0 warning(s) :( |
|