Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/135.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
编译C+时出现错误3+;Qt中的项目 当我试图编译一个非常简单的C++项目(Qt Creator中没有与Qt有关的代码)时(Qt Cale4.4.2,基于Qt5.152),它在问题选项卡中显示了错误3。_C++_Makefile_Qt Creator - Fatal编程技术网

编译C+时出现错误3+;Qt中的项目 当我试图编译一个非常简单的C++项目(Qt Creator中没有与Qt有关的代码)时(Qt Cale4.4.2,基于Qt5.152),它在问题选项卡中显示了错误3。

编译C+时出现错误3+;Qt中的项目 当我试图编译一个非常简单的C++项目(Qt Creator中没有与Qt有关的代码)时(Qt Cale4.4.2,基于Qt5.152),它在问题选项卡中显示了错误3。,c++,makefile,qt-creator,C++,Makefile,Qt Creator,我不知道出了什么问题,我以前的基本项目做得很好。我还检查了项目->构建环境->清除系统环境 下面是编译输出 00:58:00: Running steps for project Network... 00:58:00: Configuration unchanged, skipping qmake step. 00:58:00: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j2 C:/Qt/Tools/

我不知道出了什么问题,我以前的基本项目做得很好。我还检查了项目->构建环境->清除系统环境

下面是编译输出

00:58:00: Running steps for project Network...
00:58:00: Configuration unchanged, skipping qmake step.
00:58:00: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j2
C:/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/antiq/Documents/QT/build-Network-Desktop_Qt_6_0_3_MinGW_64_bit-Debug'
g++ -c -fno-keep-inline-dllexport -g -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -I../Network -I. -IC:/Qt/6.0.3/mingw81_64/mkspecs/win32-g++  -o debug/DataStructure.o ../Network/DataStructure.cpp
g++ -c -fno-keep-inline-dllexport -g -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -I../Network -I. -IC:/Qt/6.0.3/mingw81_64/mkspecs/win32-g++  -o debug/main.o ../Network/main.cpp
Cannot create temporary file in C:\WINDOWS\: Permission denied
mingw32-make[1]: *** [Makefile.Debug:108: debug/DataStructure.o] Error 3
mingw32-make[1]: *** Waiting for unfinished jobs....
Cannot create temporary file in C:\WINDOWS\: Permission denied
mingw32-make[1]: *** [Makefile.Debug:111: debug/main.o] Error 3
mingw32-make[1]: Leaving directory 'C:/Users/antiq/Documents/QT/build-Network-Desktop_Qt_6_0_3_MinGW_64_bit-Debug'
mingw32-make: *** [Makefile:45: debug] Error 2
00:58:03: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project Network (kit: Desktop Qt 6.0.3 MinGW 64-bit)
When executing step "Make"
00:58:03: Elapsed time: 00:03.

无法在C:\WINDOWS中创建临时文件\:权限被拒绝
这可能是您的问题。您需要找出试图写入windows文件夹的内容,默认情况下,该文件夹需要提升权限。我猜有一个
TEMP
环境变量指向'C:\windows'。请检查并可能重新配置。请详细说明?