c++ - fatal error U1073: don't know how to make 'c:\winddk\7600.16385.0\lib\wxp\i386\msvcrt_winxp.obj' -


i try compile driver winxp x86 release, using these commands:

c:\winddk\7600.16385.0\bin\setenv.bat c:\winddk\7600.16385.0\ fre x86 wxp no_oacr cd c:\src build 

it fails because of these u1073 errors msvcrt_winxp.obj. checked , there no msvcrt_winxp.obj file anywhere in c:\winddk or subdirectories.

it looks me problem not in actual code, maybe haven't set ddk right before compiling. why these u1073 errors?

i found similar question - driver build failing amd64 via winddk, there op did has not included relevant information such build output, , question unanswered. found thread - http://www.techtalkz.com/microsoft-device-drivers/295015-wdk-linker-error-u1073.html, there no answer there, well.

my build output:

build: compile , link x86 build: loading c:\winddk\7600.16385.0\build.dat... build: computing include file dependencies: build: start time: thu nov 13 12:04:25 2014 build: examining c:\src directory tree files compile.     c:\src      c:\src\common      c:\src\driver      c:\src\ui  build: saving c:\winddk\7600.16385.0\build.dat... 1>build: compiling (nosync) c:\src\driver directory 2>build: compiling (nosync) c:\src\ui directory _nt_target_version set winxp _nt_target_version set winxp 1>build: linking c:\src\driver directory 2>build: linking c:\src\ui directory _nt_target_version set winxp _nt_target_version set winxp 1>errors in directory c:\src\driver 1>nmake : fatal error u1073: don't know how make 'c:\winddk\7600.16385.0\lib\wxp\i386\msvcrt_winxp.obj' 2>errors in directory c:\src\ui 2>nmake : fatal error u1073: don't know how make 'c:\winddk\7600.16385.0\lib\wxp\i386\msvcrt_winxp.obj' 1>nmake.exe /nologo buildmsg=stop. -i /nologo /f c:\winddk\7600.16385.0\bin\makefile.def build_pass=pass2 linkonly=1 nopass0=1 makedll=1 makedir_relative_to_basedir= failed - rc = 2 2>nmake.exe /nologo buildmsg=stop. -i /nologo /f c:\winddk\7600.16385.0\bin\makefile.def build_pass=pass2 linkonly=1 nopass0=1 makedll=1 makedir_relative_to_basedir= failed - rc = 2 build: finish time: thu nov 13 12:04:26 2014 build: done     0 files compiled - 4 errors 

i don't know why, after installed newer version - 7600.16385.1 http://www.microsoft.com/en-us/download/details.aspx?id=11800, building worked fine, without errors.

it didn't work first time, however, noticed still complaining 7600.16385.0, removed intermediary build output, .err , .log files. after compiling again, worked time.

i noticed msvcrt_winxp.obj present in c:\winddk\7600.16385.1, not in c:\winddk\7600.16385.0.

i must admit hadn't downloaded c:\winddk\7600.16385.0, old folder found on hard-drive, , assumed had used compile project before, copied it. problems might have been because of this.

so in conclusion, problem winddk install, not project itself, , installing newer version fixed it. maybe re-installing same version have worked, too, have no need verify that's working newer version.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -