https://bugs.winehq.org/show_bug.cgi?id=52381
Bug ID: 52381 Summary: wineg++: Compile error in tom.h Product: Wine Version: 6.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winelib Assignee: wine-bugs@winehq.org Reporter: sacrom@gmail.com Distribution: ---
Compiling an application based in winelib (copiled with wineg++), since Wine 6.19 causes a compile error at header "tom.h".
I've narrowed and minified the source file to generate the error.
-----------------------------
[sc@generic_linux1_64]/sc/tmp/wine$ cat compile_error.c #include <windows.h> #include <tom.h>
int main() { return 0; }
[sc@generic_linux1_64]/sc/tmp/wine$ wine --version wine-6.19
[sc@generic_linux1_64]/sc/tmp/wine$ winegcc compile_error.c
[sc@generic_linux1_64]/sc/tmp/wine$ wineg++ compile_error.c In file included from compile_error.c:2: /opt/wine-devel/include/wine/windows/tom.h:1889:22: error: invalid use of incomplete type ‘struct ITextSelection’ 1889 | ITextRange2 : public ITextSelection | ^~~~~~~~~~~~~~ In file included from compile_error.c:2: /opt/wine-devel/include/wine/windows/tom.h:79:19: note: forward declaration of ‘struct ITextSelection’ 79 | typedef interface ITextSelection ITextSelection; | ^~~~~~~~~~~~~~ winegcc: /usr/bin/g++ failed
-----------------------------
While in Wine 6.18:
[sc@generic_linux1_64]/sc/tmp/wine$ wine --version wine-6.18 [sc@generic_linux1_64]/sc/tmp/wine$ winegcc compile_error.c [sc@generic_linux1_64]/sc/tmp/wine$ wineg++ compile_error.c [sc@generic_linux1_64]/sc/tmp/wine$ cat compile_error.c #include <windows.h> #include <tom.h>
int main() { return 0; }
-----------------------------
Probably the cause lies in this commit: https://source.winehq.org/git/wine.git/commit/5a8dcb062793fbb68997e1b54ebc26...