Opened 4 weeks ago
Closed 2 weeks ago
#22174 closed defect (fixed)
VirtualBox SDK 7.1 missing XPCOM headers
Reported by: | Michael Hansen | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox-7.1.0 |
Keywords: | SDK | Cc: | Michael Hansen |
Guest type: | all | Host type: | Linux |
Description
The VirtualBox 7.1.0 SDK for C++/XPCOM references headers from the VirtualBox sources which are not present in the SDK archive:
In file included from /opt/VirtualBoxSDK/sdk-7.1.0/bindings/xpcom/include/nsprpub/prtypes.h:58, from /opt/VirtualBoxSDK/sdk-7.1.0/bindings/xpcom/include/xpcom/nscore.h:51, from /opt/VirtualBoxSDK/sdk-7.1.0/bindings/xpcom/include/nsrootidl.h:12, from /opt/VirtualBoxSDK/sdk-7.1.0/bindings/xpcom/include/nsISupports.h:10, from /opt/VirtualBoxSDK/sdk-7.1.0/bindings/xpcom/include/VirtualBox_XPCOM.h:10, from <my header>: /opt/VirtualBoxSDK/sdk-7.1.0/bindings/xpcom/include/nsprpub/prcpucfg.h:42:10: fatal error: iprt/cdefs.h: No such file or directory 42 | #include <iprt/cdefs.h> | ^~~~~~~~~~~~~~ compilation terminated.
I tried working around this specific header, but it appears there are several other cases of this in the 7.1 XPCOM headers. The MSCOM header works fine on Windows, and the code that consumes it works fine on previous (6.x and 7.0) versions of the VirtualBox SDK.
Note:
See TracTickets
for help on using tickets.
Hi Michael,
VirtualBox 7.1.2 has been released last week. This issue should be fixed in this version. You can download it from here. Than you for reporting the issue.