wangwenx190 / framelesshelper

Project moved to: https://github.com/stdware/qwindowkit Cross-platform window customization framework for Qt Widgets and Qt Quick. Supports Windows, Linux and macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qt6.6.0编译报错

wendao8469759 opened this issue · comments

In file included from D:/Qt/6.6.0/msvc2019_64/include/QtCore/6.6.0/QtCore/private/qthread_p.h:20,
from D:/Qt/6.6.0/msvc2019_64/include/QtGui/6.6.0/QtGui/private/qguiapplication_p.h:29,
from E:/c++/framelesshelper/src/core/utils_win.cpp:49:
D:/Qt/6.6.0/msvc2019_64/mkspecs/win32-msvc/qplatformdefs.h:102:13: error: conflicting declaration 'typedef int mode_t'
102 | typedef int mode_t;
| ^~~~~~
In file included from D:/Qt/Tools/mingw1120_64/x86_64-w64-mingw32/include/pthread.h:64,
from D:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
from D:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
from D:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/atomic_wait.h:38,
from D:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/atomic_base.h:41,
from D:/Qt/Tools/mingw1120_64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/atomic:41,
from D:/Qt/6.6.0/msvc2019_64/include/QtCore/qatomic_cxx11.h:9,
from D:/Qt/6.6.0/msvc2019_64/include/QtCore/qbasicatomic.h:8,
from D:/Qt/6.6.0/msvc2019_64/include/QtCore/qatomic.h:8,

你是不是QtCreator哪里搞坏了?你的Qt明明是MSVC的包,为什么又引用了mingw的头文件?这俩东西不能这样混用