阅读:1434回复:5
怎么Free build就要出问题呢?
我在check build的时候没有问题,能够正常产生sys文件,但是free build的时候就是下面的错误
link : error LNK1181: cannot open input file 'd:\machinedog\objfre_wxp_x86\i386\machinedog.obj' 那个目录下确实缺少machinedog.obj'该文件,为什么不能生成这个文件呢?请高手不吝指教!谢谢 |
|
沙发#
发布于:2009-04-06 11:28
看一下条件编译语句
|
|
|
板凳#
发布于:2009-04-06 14:04
这个错误说明连接的时候找不到machinedog.obj, 你的工程中有包含machinedog这个源文件吗?
另外还有没有其他错误? |
|
|
地板#
发布于:2009-04-06 14:59
回楼上,工程中肯定有machinedog源文件,不然怎么可以编译check版本的呢
//*************************** Check Build正常***************************************************************** D:\>cd machinedog D:\machinedog>build path contains nonexistant d:\progra~1\eagle\coderu~1\system, removing BUILD: Compile and Link for x86 BUILD: Loading d:\winddk\6001.18002\build.dat... BUILD: Computing Include file dependencies: BUILD: Start time: Mon Apr 06 14:53:37 2009 BUILD: Examining d:\machinedog directory for files to compile. BUILD: Saving d:\winddk\6001.18002\build.dat... BUILD: Compiling and Linking d:\machinedog directory _NT_TARGET_VERSION SET TO WINXP Compiling - machinedog.c Linking Executable - objchk_wxp_x86\i386\dog.sys BUILD: Finish time: Mon Apr 06 14:53:39 2009 BUILD: Done 3 files compiled - 10 Warnings 1 executable built //***************************************************************************************************************** //********************************Free Build不正常********************************************************** D:\machinedog>build path contains nonexistant d:\progra~1\eagle\coderu~1\system, removing BUILD: Compile and Link for x86 BUILD: Loading d:\winddk\6001.18002\build.dat... BUILD: Computing Include file dependencies: BUILD: Start time: Mon Apr 06 14:54:08 2009 BUILD: Examining d:\machinedog directory for files to compile. BUILD: Saving d:\winddk\6001.18002\build.dat... BUILD: Compiling and Linking d:\machinedog directory _NT_TARGET_VERSION SET TO WINXP Compiling - machinedog.c errors in directory d:\machinedog d:\machinedog\machinedog.c(253) : error C2220: warning treated as error - no 'ob ject' file generated Linking Executable - objfre_wxp_x86\i386\dog.sys link : error LNK1181: cannot open input file 'd:\machinedog\objfre_wxp_x86\i386\machinedog.obj' BUILD: Finish time: Mon Apr 06 14:54:10 2009 BUILD: Done 3 files compiled - 2 Warnings - 1 Error 1 executable built - 1 Error |
|
地下室#
发布于:2009-04-06 19:48
d:\machinedog\machinedog.c(253),machinedog.c 253行有问题,得看代码
|
|
5楼#
发布于:2009-04-06 21:36
谢谢楼上
srb->Cdb[7]=(UCHAR)BlockCount>>0x08;我先前没有加小括号 srb->Cdb[7]=(UCHAR)(BlockCount>>0x08);现在没有问题了 |
|