[vbox-dev] build failure for Windows driver

Huihong Luo huisinro at yahoo.com
Fri Feb 11 19:23:21 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
 
The failing command:
@ C:/PROGRA~1/MICROS~2/VC/bin/cl.exe -c -TP -c -nologo -O2 -Zi -Zl -GR- -EHs- -GF -Gz -W3 -GS- -wd4996 -Zc:wchar_t- -O2
-GS- -Oy- -IC:/virtualbox-dev/vbox-latest/src/VBox/Additions/common/VBoxGuest -IC:/PROGRA~1/MICROS~2/VC/PlatformSDK/Incl
ude -IC:/WinDDK/3790.1830/inc/ddk -IC:/WinDDK/3790.1830/inc/ddk/wnet -IC:/WinDDK/3790.1830/inc/wnet -IC:/WinDDK/3790.183
0/inc/ddk/wdm/wnet -IC:/virtualbox-dev/vbox-latest/include -IC:/virtualbox-dev/vbox-latest/out/win.x86/release -IC:/PROG
RA~1/MICROS~2/VC/include -IC:/PROGRA~1/MICROS~2/VC/atlmfc/include -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_
BITS_GUESTS -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_X86 -D__X86__ -D__WIN32__ -D_X86_ -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=3
2 -DGC_ARCH_BITS=64 -DIN_GUEST -DIN_GUEST_R0 -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DVBOX_REBOOT_ON_UNINSTALL -D_X86_ -FdC:/
virtualbox-dev/vbox-latest/out/win.x86/release/obj/VBoxGuest/VBoxGuest-win-obj.pdb -FD -FoC:/virtualbox-dev/vbox-latest/
out/win.x86/release/obj/VBoxGuest/VBoxGuest-win.obj C:\\virtualbox-dev\\vbox-latest\\src\\VBox\\Additions\\common\\VBoxG
uest\\VBoxGuest-win.cpp

--- On Fri, 2/11/11, Huihong Luo <huisinro at yahoo.com> wrote:


From: Huihong Luo <huisinro at yahoo.com>
Subject: build failure for Windows driver
To: vbox-dev at virtualbox.org
Date: Friday, February 11, 2011, 11:21 AM







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/0ba34ecd/attachment.html>


More information about the vbox-dev mailing list