!!!!!!!超急超急!超急!超急!超急!超急!超急!

zhang_qxian 项目经理  2003-04-04 02:57:17
正在帮别人调试一个WDM驱动程序,编译环境为Win2K Free Build Environment ,编译指令为build -cZ, 编译时提示一下信息:
E:\source\vcap>build -cZ
BUILD: Object root set to: ==> objfre_w2k
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Examining e:\source\vcap directory for files to compile.
BUILD: Compiling e:\source\vcap directory
Compiling - vcap.rc for i386
Compiling - capmain.c for i386
Compiling - capirq.c for i386
Compiling - capvideo.c for i386
Compiling - capprop.c for i386
Compiling - crt.c for i386
Compiling - hw.c for i386
Compiling - gpio.c for i386
Compiling - i2c.c for i386
Compiling - decoder.c for i386
Compiling - riscprog.c for i386
Compiling - risceng.c for i386
Compiling - register.c for i386
Compiling - command.c for i386
Compiling - scatgath.c for i386
Compiling - registry.c for i386
Compiling - cstream.c for i386
Compiling - scaler.c for i386
Compiling - colspace.c for i386
Compiling - cfield.c for i386
Compiling - cinfohdr.c for i386
Linking Executable - objfre_w2k\i386\cxvcap.sys for i386
risceng.obj() : error LNK2019: unresolved external symbol __alldvrm referenced i
n function "public: void __thiscall RISCEng::InitCaptureFPS(int,__int64,enum KS_
AnalogVideoStandard,int)" (?InitCaptureFPS@RISCEng@@QAEXH_JW4KS_AnalogVideoStand
ard@@H@Z)
objfre_w2k\i386\cxvcap.sys() : error LNK1120: 1 unresolved externals
BUILD: Linking e:\source\vcap directory
Linking Executable - objfre_w2k\i386\cxvcap.sys for i386
risceng.obj() : error LNK2019: unresolved external symbol __alldvrm referenced i
n function "public: void __thiscall RISCEng::InitCaptureFPS(int,__int64,enum KS_
AnalogVideoStandard,int)" (?InitCaptureFPS@RISCEng@@QAEXH_JW4KS_AnalogVideoStand
ard@@H@Z)
objfre_w2k\i386\cxvcap.sys() : error LNK1120: 1 unresolved externals
BUILD: Done

41 files compiled
2 executables built - 4 Errors
----------------------------------------------------------------
出现上述问题后检查原文件,经过艰苦的战斗,定位于一条语句上,
FieldBitMask = NTSCBitField[ Idx - 1 ];

NTSCBitField定义为static const DWORD NTSCBitField[NTSC_MAX_FRAME_RATE];
FieldBitMask 为long。
Idx为局部变量,类型为unsigned int。
只要将上述语句注释,就可以通过。但这条语句我怎么也发现不了错误。要是错的话,编译就不能通过,问题是编译通过了,但链接没有通过。

非常郁闷,期待高手给予解决!!!!!!



...全文
54 点赞 收藏 2
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
newblood 2003-04-08
估计不是该句的问题, 你是不是走入了误区.
仔细看错误提示, 无法找到该符号表.
.lib 的缺少也是有可能.
回复
danielxuao 2003-04-07
看上去好像是需要找不到某个.lib文件
回复
相关推荐
发帖
驱动开发/核心开发
创建于2007-09-28

2.1w+

社区成员

硬件/嵌入开发 驱动开发/核心开发
申请成为版主
帖子事件
创建了帖子
2003-04-04 02:57
社区公告
暂无公告