[vbox-dev] build failure for Windows driver

Huihong Luo huisinro at yahoo.com
Fri Feb 11 19:21:50 GMT 2011


When building Windows kernel drivers, the VS2005 include path ( -IC:/PROGRA~1/MICROS~2/VC/P
atformSDK/Include) is included and thus cause conflicting.
 
Shouldn't platform SDK include excluded when building drivers?
 
C:\PROGRA~1\MICROS~2\VC\include\intrin.h(198) : error C2373: '_InterlockedExchange' : redefinition; different type modif
iers
        C:\WinDDK\3790.1830\inc\ddk\wnet\ntddk.h(8673) : see declaration of '_InterlockedExchange'
C:\PROGRA~1\MICROS~2\VC\include\intrin.h(208) : error C2373: '_InterlockedExchangeAdd' : redefinition; different type mo
difiers
 
@ C:/PROGRA~1/MICROS~2/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -MT -W3 -wd4996 -Zc:wchar_t- -O2 -Oy-
-GS- -IC:/virtualbox-dev/vbox-latest/src/VBox/Runtime/include -IC:/virtualbox-dev/vbox-latest/src/libs/zlib-1.2.1 -IC:/
irtualbox-dev/vbox-latest/src/libs/liblzf-3.4 -IC:/virtualbox-dev/vbox-latest/src/libs/libxml2-2.6.30/include -IC:/virt
albox-dev/build-tools/OpenSSL/include -IC:/virtualbox-dev/vbox-latest/src/libs/boost-1.37.0 -IC:/PROGRA~1/MICROS~2/VC/P
atformSDK/Include -IC:/PROGRA~1/MICROS~2/VC/PlatformSDK/Include -IC:/WinDDK/3790.1830/inc/ddk -IC:/WinDDK/3790.1830/inc
ddk/wnet -IC:/WinDDK/3790.1830/inc/wnet -IC:/WinDDK/3790.1830/inc/ddk/wdm/wnet -IC:/virtualbox-dev/vbox-latest/include
IC:/virtualbox-dev/vbox-latest/out/win.x86/release -IC:/PROGRA~1/MICROS~2/VC/include -IC:/PROGRA~1/MICROS~2/VC/atlmfc/i
clude -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86
_ -D__WIN32__ -D_REENTRANT -DWIN32 -D_WINDOWS -D_MBCS -DBOOST_DISABLE_ASSERTS -D_X86_ -DIN_RING3 -DLOG_DISABLED -DIN_RT
R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -D_CRT_SECURE_NO_DEPRECATE -
dC:/virtualbox-dev/vbox-latest/out/win.x86/release/obj/RuntimeBldProg/common/alloc/heapsimple-obj.pdb -FD -FoC:/virtual
ox-dev/vbox-latest/out/win.x86/release/obj/RuntimeBldProg/common/alloc/heapsimple.obj C:\\virtualbox-dev\\vbox-latest\\
rc\\VBox\\Runtime\\common\\alloc\\heapsimple.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110211/562c893f/attachment.html>


More information about the vbox-dev mailing list