Qt Creator 配置问题,刚安装的Creator和Qt环境,自己写了个程序,运行时出现下列问题,如何解决? 20
10:23:06:为项目hello_world执行步骤...10:23:06:配置没有改变,跳过qmake步骤。10:23:06:正在启动"C:\Qt\Qt5.4.1\T...
10:23:06: 为项目hello_world执行步骤 ...
10:23:06: 配置没有改变, 跳过 qmake 步骤。
10:23:06: 正在启动 "C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe"
C:/Qt/Qt5.4.1/Tools/mingw491_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/Qtexercise/Qtlianxi/hello_world-build-desktop-Qt_4_3_2____'
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\hello_world.exe release/main.o release/dialog.o release/moc_dialog.o -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LC:/Qt/Qt5.4.1/5.4/mingw491_32/lib -lqtmain -LC:\mingw491\mingw32\lib -LC:\Utils\icu32_53_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\opensll\lib -lshell32 -LC:\Qt\Qt5.4.1\5.4\mingw491_32/lib -lQt5Gui -lQt5Core
release/main.o:main.cpp:(.text+0x2a): undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
release/main.o:main.cpp:(.text+0x5a): undefined reference to `_imp___ZN12QApplication4execEv'
release/main.o:main.cpp:(.text+0x6d): undefined reference to `_imp___ZN12QApplicationD1Ev'
release/main.o:main.cpp:(.text+0x85): undefined reference to `_imp___ZN12QApplicationD1Ev'
C:/Qt/Qt5.4.1/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: release/main.o: bad reloc address 0x12 in section `.eh_frame'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:81: recipe for target 'release\hello_world.exe' failed
mingw32-make[1]: *** [release\hello_world.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Qtexercise/Qtlianxi/hello_world-build-desktop-Qt_4_3_2____'
mingw32-make: *** [release] Error 2
makefile:34: recipe for target 'release' failed
10:23:07: 进程"C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe"退出,退出代码 2 。
Error while building/deploying project hello_world (kit: 桌面)
When executing step "Make"
10:23:07: Elapsed time: 00:01. 展开
10:23:06: 配置没有改变, 跳过 qmake 步骤。
10:23:06: 正在启动 "C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe"
C:/Qt/Qt5.4.1/Tools/mingw491_32/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory 'C:/Qtexercise/Qtlianxi/hello_world-build-desktop-Qt_4_3_2____'
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\hello_world.exe release/main.o release/dialog.o release/moc_dialog.o -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LC:/Qt/Qt5.4.1/5.4/mingw491_32/lib -lqtmain -LC:\mingw491\mingw32\lib -LC:\Utils\icu32_53_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\opensll\lib -lshell32 -LC:\Qt\Qt5.4.1\5.4\mingw491_32/lib -lQt5Gui -lQt5Core
release/main.o:main.cpp:(.text+0x2a): undefined reference to `_imp___ZN12QApplicationC1ERiPPci'
release/main.o:main.cpp:(.text+0x5a): undefined reference to `_imp___ZN12QApplication4execEv'
release/main.o:main.cpp:(.text+0x6d): undefined reference to `_imp___ZN12QApplicationD1Ev'
release/main.o:main.cpp:(.text+0x85): undefined reference to `_imp___ZN12QApplicationD1Ev'
C:/Qt/Qt5.4.1/Tools/mingw491_32/bin/../lib/gcc/i686-w64-mingw32/4.9.1/../../../../i686-w64-mingw32/bin/ld.exe: release/main.o: bad reloc address 0x12 in section `.eh_frame'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:81: recipe for target 'release\hello_world.exe' failed
mingw32-make[1]: *** [release\hello_world.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/Qtexercise/Qtlianxi/hello_world-build-desktop-Qt_4_3_2____'
mingw32-make: *** [release] Error 2
makefile:34: recipe for target 'release' failed
10:23:07: 进程"C:\Qt\Qt5.4.1\Tools\mingw491_32\bin\mingw32-make.exe"退出,退出代码 2 。
Error while building/deploying project hello_world (kit: 桌面)
When executing step "Make"
10:23:07: Elapsed time: 00:01. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询