Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

qt6.6.0编译报错 #301

Open
wendao8469759 opened this issue Oct 20, 2023 · 1 comment
Open

qt6.6.0编译报错 #301

wendao8469759 opened this issue Oct 20, 2023 · 1 comment

Comments

@wendao8469759
Copy link

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,

@wangwenx190
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants