Hi, On 03.05.2013 07:05, Xun Chen wrote: > Hello, > > I'd like to modify the code of VirtualBox. In the source code the head > files are needed, such as ntdef.h wdm.h & ntddk.h, which are contained > in WinDDK. I added these files in the head of source file, #include > <***.h>. But when I build the source, the error appear: > > fatal error C1083: Cannot open include file: 'ntdef.h': No such file or > directory > > Before modifying the source code, the VirtualBox had successfully been > built. So I'm sure the KBUILD has already know where WinDDK is.What can > I do to let the KBUILD know where to find these head files?
Your question lacks some basic context to give a direct answer, so I'm trying to answer it with minimum vagueness nevertheless: kBuild has a concept called "SDK", which is a bundle of appropriate include and library settings. So you need to add $(VBOX_WINDDK) to the appropriate foo_SDKS.win variable (as it's only applicable for Windows) - there are some examples in src/VBox/Devices/Makefile.kmk. Klaus > > Thank you~ _______________________________________________ vbox-dev mailing list [email protected] https://www.virtualbox.org/mailman/listinfo/vbox-dev
