阅读:1773回复:1
解决2kDDK + VC6.0编译出现Internal error during Pass2的问题
Q:用2kDDK + VC6.0编译驱动程序出现Internal error during Pass2的错误,如何解决?
A:关于这个问题最简单的解决方法就是在安装VC6.0 + sp5之后不要安装processor pack for sp5,这样就不会出现这个错误,大家也可以参考这篇文章 http://www.driverdevelop.com/forum/viewthread.php?tid=35680 在2kDDK的release note中有下面的描述: Compiling and Linking Tested Platforms and Compilers We have tested both Microsoft Visual C++? 5.0 (SP3) and Microsoft Visual C++? 6.0 (SP2) on the following platforms: Windows? 98 (x86), and Windows 2000 (x86). Compiler Notes Visual C++ 6.0 requires Visual C++ 6.0 Service Pack 2 (or greater), available from http://msdn.microsoft.com/visualc/downloads/updates.asp. Visual C++ 5.0 requires Visual C++ 5.0 Service Pack 3 (or greater), available from http://msdn.microsoft.com/visualc/downloads/updates.asp. 上面关于update下载的链接是错误的,新的链接为: http://msdn.microsoft.com/vstudio/previous/vs6/downloads/default.aspx 从上面的描述可以看出用VC6.0 + sp2(or greater)或者VC5.0 + sp3(or greater)都可以配合2kDDK进行2k下的驱动开发,需要注意的就是不要安装processor pack。 另外在2kDDK的release note中还提到一个关于msplot例子的错误,描述如下: Plotter Sample Will Not Compile Under Some System Locales When the system locale has been set to Korean, Chinese (Taiwan) or Chinese (PRC), the plotter sample, located in src\\print\\msplot\\plotter, will fail to compile, giving errors in brush.c. Change the code on line 640 from Buf[Size++] = (BYTE)((bData & Mask) ? \'?\' : \'?\'); to this: Buf[Size++] = (BYTE)((bData & Mask) ? 0xDB : 0xB0); 不过我在安装好的ddk中查看了这个源文件,已经进行了修改,因此一般情况应该是没有问题的,如果出现这个错误,大家可以按照这种方法修改。 [编辑 - 9/19/03 by terrificskyfox] |
|
沙发#
发布于:2003-09-19 18:50
是个值得注意的问题。
|
|