error compiling windows ddk


forgive me being finish newbie windows ddk.



i have emanate rudimentary record named test.cpp:



#include <windows.h>

#define bad_address 0xbaadf00d

int __cdecl main(int argc, char* args[])
{
char* p =(char*)bad_address;
*p='a';
relapse 0;
}


in same office i combined sources record this:




targetname=test
targettype=program
targetpath=obj

targetlibs=$(sdk_lib_path)\kernel32.lib

sources= test.cpp


and makefile this:




#
# correct file!!! correct .\sources. wish supplement new source
# record component. record merely indirects genuine file
# common components windows
#
!include $(ntmakeenv)\makefile.def


after rising windows xp giveaway build sourroundings i crop office 3 files (test.cpp, makefile sources) run following command:



f:\temp\debug\dir1>build -czg


which outputs:




build: adding /y copycmd xcopy ops won't hang.
build: controlling 2 child processes
build: vigilant bottom set to: ==> objfre_wxp_x86
build: accumulate couple i386
build: examining f:\temp\debug\dir1 office files compile.
build: compiling (nosync) f:\temp\debug\dir1 directory
1>compiling - test.cpp i386
build: compiling f:\temp\debug\dir1 directory
build: fasten f:\temp\debug\dir1 directory
1>linking executable - objfre_wxp_x86\i386\test.exe i386
build: done

2 files compiled
1 executable built


the problem i run combined executable test.exe says:




f:\temp\debug\dir1\objfre_wxp_x86\i386>test
the f:\temp\debug\dir1\objfre_wxp_x86\i386\test.exe concentration can't run win32 mode.


what am i blank here?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?