kakapanda
驱动牛犊
驱动牛犊
  • 注册日期2009-02-10
  • 最后登录2009-06-22
  • 粉丝0
  • 关注0
  • 积分3分
  • 威望21点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1711回复:0

求助关于error lnk181 can not open file mywork.obj

楼主#
更多 发布于:2009-03-20 20:27
工具,wdk, Vista虚拟机

提示LINK:error lnk181 can not open file  mywork.obj
C:\mywork2>build
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\6001.18000\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Fri Mar 20 19:54:27 2009
BUILD: Examining c:\mywork2 directory for files to compile.
BUILD: Saving c:\winddk\6001.18000\build.dat...
BUILD: Compiling and Linking c:\mywork2 directory
Compiling - testapp.cpp
Linking Executable - objchk_wlh_x86\i386\testapp.exe
errors in directory c:\mywork2
link : error LNK1181: cannot open input file 'c:\mywork2\objchk_wlh_x86\i386\tes
tapp.obj'
BUILD: Finish time: Fri Mar 20 19:54:29 2009
BUILD: Done

    3 files compiled
    1 executable built - 1 Error

这个文件在整个电脑里都找不到,更不要说打开了,代码因该没有什么其他错误了,就是连接不上,用check版和free版都试过编译了,就是出这一个错……

在网上查,1。说路径问题还有环境,不过我这个排除了,因为同一路径下其他的driver程序能编译成功

           2。放置文件问题,我整个project 放在桌面的,说有空字符,出错,于是我转到了c目录下,依旧出错,接着我又转到了我的文档的vs2008project目录下,没有报这个错误了,但是报的另一个
    如下:

   C:\Users\Admin\Documents\Visual Studio 2008\Projects\mywork2>build
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\6001.18000\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Fri Mar 20 19:29:12 2009
BUILD: Examining c:\users\admin\documents\visual studio 2008\projects\mywork2 di
rectory for files to compile.
BUILD: Saving c:\winddk\6001.18000\build.dat...
BUILD: Compiling and Linking c:\users\admin\documents\visual studio 2008\project
s\mywork2 directory
errors in directory c:\users\admin\documents\visual studio 2008\projects\mywork2

c:\winddk\6001.18000\bin\makefile.new(7040) : error U1087: cannot have : and ::
dependents for same target
errors in directory c:\users\admin\documents\visual studio 2008\projects\mywork2

nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDI
R_RELATIVE_TO_BASEDIR= failed - rc = 2

BUILD: Finish time: Fri Mar 20 19:29:14 2009
BUILD: Done

这个错误,我觉得根本就是乱报的了,因为程序里只有switch 用到了“:”,这个因该是没什么问题的了
    
游客

返回顶部