On Thu, 9 Jul 2026 10:17:47 -0700 (PDT) Сергей Коныгин wrote:
СК> Everything works fine when compiling for Windows using 32-bit MinGW. A
СК> compilation error occurs when using the cross-compiler (installed on Debian
СК> 12.6). I am configuring wxWidgets using the following lines
What is the version of your cross-compiler and the SDK being used? It
looks like they are somehow not compatible with each other...
СК> Here is a list of errors. What am I doing wrong?
[...unrelated warnings snipped...]
СК> /usr/share/mingw-w64/include/uiautomationcoreapi.h:69:128: error: expected
СК> ‘,’ or ‘...’ before ‘new’
СК> 69 | HRESULT WINAPI
СК> UiaRaiseAutomationPropertyChangedEvent(IRawElementProviderSimple *provider,
СК> PROPERTYID id, VARIANT old, VARIANT new);
This looks like an error in the SDK, "new" is a keyword in C++ and
shouldn't be used as identifier name. I don't have this in my (Debian 13)
version, so it has been already fixed, but we possibly could work around
this by the usual #define-new-as-something-else-before-including-the-header
(and #undef it after) trick. Could you try doing it?
СК> ../src/msw/taskdlg.cpp:121:25: error: ‘IUIAutomationElement’ was not
СК> declared in this scope; did you mean ‘LIBID_UIAutomationClient’?
However if your /usr/share/mingw-w64/include/uiautomationclient.h really
doesn't declare IUIAutomationElement (i.e. it's not some weird consequence
of the error above), there is no chance that this code will compile
anyhow... We're going to need a configure/CMake test and an option to
disable it in this case, please open an issue if this is indeed the case so
that we fix it in 3.3.4/
3.4.0.
Thanks,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
https://www.tt-solutions.com/