gpt4 book ai didi

c - Qt 5.2.1 错误 “collect2.exe: Id returned 1 exit status”

转载 作者:可可西里 更新时间:2023-11-01 09:59:18 25 4
gpt4 key购买 nike

当我尝试构建我的应用程序时,出现以下错误。任何的想法?我在 Win8 上使用 Qt 5.2.1 和 MinGW 4.8 32 位

16:14:47: Running steps for project test2...
16:14:47: Configuration unchanged, skipping qmake step.
16:14:47: Starting: "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe"
C:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/ha/Desktop/build-test2-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
g++ -Wl,-subsystem,console -mthreads -o debug\test2.exe debug/main.o
debug/main.o: file not recognized: File truncated
collect2.exe: error: ld returned 1 exit status
Makefile.Debug:77: recipe for target 'debug\test2.exe' failed
mingw32-make[1]: *** [debug\test2.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/ha/Desktop/build-test2-Desktop_Qt_5_2_1_MinGW_32bit-Debug'
makefile:34: recipe for target 'debug' failed
mingw32-make: *** [debug] Error 2
16:14:48: The process "C:\Qt\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project test2 (kit: Desktop Qt 5.2.1 MinGW 32bit)
When executing step 'Make'
16:14:48: Elapsed time: 00:00.

最佳答案

这一行:

debug/main.o: file not recognized: File truncated

告诉您文件 main.o 没有正确创建。从菜单中选择“重建”,或者删除该文件并再次“构建”。

当您在编译器输出目标文件时中断编译器时,通常会发生这种情况。

关于c - Qt 5.2.1 错误 “collect2.exe: Id returned 1 exit status”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22940186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com