Prev: What is watchdog!WdUpdateRecoveryState: Recovery enabled.?
Next: Intermediate driver (IM) installation using DPFx question
From: Anonymous on 17 Jan 2006 09:43 Dear Group, Is it possible to compile win32 programs with the ddk? It seems all the correct header and library files are present, but when I try to compile I receive extremely strange errors. Here is what I received from the standard 'HelloWorld' app of the VC6 wizard: C:\win32>set path=C:\WINDDK\3790.1830\bin\x86 C:\win32>set include=C:\WINDDK\3790.1830\inc\crt;C:\WINDDK\3790.1830\inc\w2k C:\win32>set lib=C:\WINDDK\3790.1830\lib\crt\i386;C:\WINDDK\3790.1830\lib\w2k\i386 C:\win32>nmake -f win32.mak Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. No configuration specified. Defaulting to win32 - Win32 Debug. cl.exe @c:\DOCUME~1\administrator\LOCALS~1\Temp\nm30.tmp StdAfx.cpp rc.exe /l 0x809 /fo".\Debug\win32.res" /d "_DEBUG" .\win32.rc cl.exe @c:\DOCUME~1\administrator\LOCALS~1\Temp\nm31.tmp win32.cpp link.exe @c:\DOCUME~1\administrator\LOCALS~1\Temp\nm32.tmp LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored win32.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 ref erenced in function _WinMain(a)16 win32.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _WinMain(a)16 win32.obj : error LNK2001: unresolved external symbol __RTC_Shutdown win32.obj : error LNK2001: unresolved external symbol __RTC_InitBase LIBCD.lib(convrtcp.obj) : error LNK2001: unresolved external symbol @__security_ check_cookie@4 LIBCD.lib(write.obj) : error LNK2001: unresolved external symbol @__security_che ck_cookie@4 LIBCD.lib(dbgheap.obj) : error LNK2019: unresolved external symbol @__security_c heck_cookie@4 referenced in function __printMemBlockData LIBCD.lib(dbgrpt.obj) : error LNK2001: unresolved external symbol @__security_ch eck_cookie@4 LIBCD.lib(mbctype.obj) : error LNK2001: unresolved external symbol @__security_c heck_cookie@4 LIBCD.lib(output.obj) : error LNK2001: unresolved external symbol @__security_ch eck_cookie@4 ..\Debug\win32.exe : fatal error LNK1120: 5 unresolved externals NMAKE : fatal error U1077: 'link.exe' : return code '0x460' Stop. C:\win32>
From: Ivan Brugiolo [MSFT] on 17 Jan 2006 13:04 You need to create a `sources` file that describes what/how to compile, and then you need to use the "build -cZ" command to get your binary. Using external makefiles (other than makefile.def) is not supported under the DDK. -- -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm <zzz> wrote in message news:eC5NkR3GGHA.344(a)TK2MSFTNGP11.phx.gbl... > > Dear Group, > > Is it possible to compile win32 programs with the ddk? It seems > all the correct header and library files are present, but when I > try to compile I receive extremely strange errors. > Here is what I received from the standard 'HelloWorld' app of > the VC6 wizard: > > C:\win32>set path=C:\WINDDK\3790.1830\bin\x86 > > C:\win32>set > include=C:\WINDDK\3790.1830\inc\crt;C:\WINDDK\3790.1830\inc\w2k > > C:\win32>set > lib=C:\WINDDK\3790.1830\lib\crt\i386;C:\WINDDK\3790.1830\lib\w2k\i386 > > C:\win32>nmake -f win32.mak > > Microsoft (R) Program Maintenance Utility Version 7.00.8882 > Copyright (C) Microsoft Corp 1988-2000. All rights reserved. > > No configuration specified. Defaulting to win32 - Win32 Debug. > cl.exe @c:\DOCUME~1\administrator\LOCALS~1\Temp\nm30.tmp > StdAfx.cpp > rc.exe /l 0x809 /fo".\Debug\win32.res" /d "_DEBUG" .\win32.rc > cl.exe @c:\DOCUME~1\administrator\LOCALS~1\Temp\nm31.tmp > win32.cpp > link.exe @c:\DOCUME~1\administrator\LOCALS~1\Temp\nm32.tmp > LINK : warning LNK4224: /PDBTYPE is no longer supported; ignored > win32.obj : error LNK2019: unresolved external symbol > @_RTC_CheckStackVars@8 > ref > erenced in function _WinMain(a)16 > win32.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp > referenced > in function _WinMain(a)16 > win32.obj : error LNK2001: unresolved external symbol __RTC_Shutdown > win32.obj : error LNK2001: unresolved external symbol __RTC_InitBase > LIBCD.lib(convrtcp.obj) : error LNK2001: unresolved external symbol > @__security_ > check_cookie@4 > LIBCD.lib(write.obj) : error LNK2001: unresolved external symbol > @__security_che > ck_cookie@4 > LIBCD.lib(dbgheap.obj) : error LNK2019: unresolved external symbol > @__security_c > heck_cookie@4 referenced in function __printMemBlockData > LIBCD.lib(dbgrpt.obj) : error LNK2001: unresolved external symbol > @__security_ch > eck_cookie@4 > LIBCD.lib(mbctype.obj) : error LNK2001: unresolved external symbol > @__security_c > heck_cookie@4 > LIBCD.lib(output.obj) : error LNK2001: unresolved external symbol > @__security_ch > eck_cookie@4 > .\Debug\win32.exe : fatal error LNK1120: 5 unresolved externals > NMAKE : fatal error U1077: 'link.exe' : return code '0x460' > Stop. > > C:\win32> > > >
From: Anonymous on 17 Jan 2006 13:32 I thought SOURCES was only for device drivers ?
From: Anonymous on 17 Jan 2006 13:54 ....or more to the point, do you have a sample Sources file? (which will compile win32 or console, not for drivers)
From: Ivan Brugiolo [MSFT] on 17 Jan 2006 14:57
Among other possible examples. TARGETNAME=TestApp TARGETPATH=$(O) TARGETTYPE=PROGRAM BUFFER_OVERFLOW_CHECKS=NTDLL TARGETLIBS=\ $(SDK_LIB_PATH)\kernel32.lib _NT_TARGET_VERSION = $(_NT_TARGET_VERSION_WINXP) USE_MSVCRT=1 USE_NATIVE_EH=1 USE_STL=1 STL_VER=70 UMENTRY=wmain UMTYPE=console USE_NTDLL=1 INCLUDES=\ $(SDK_INC_PATH);\ $(DDK_INC_PATH); MSC_WARNING_LEVEL=/W4 /WX C_DEFINES=$(C_DEFINES) -D_WIN32_DCOM -D_WIN32_DCOM -DUNICODE -D_UNICODE LINKER_FLAGS=$(LINKER_FLAGS) /LARGEADDRESSAWARE SOURCES=\ TestApp.rc\ TestApp.cpp -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm <zzz> wrote in message news:ep47%23d5GGHA.648(a)TK2MSFTNGP14.phx.gbl... > ...or more to the point, do you have a sample Sources file? > (which will compile win32 or console, not for drivers) > > |