编译这个程序:
- #include<QApplication>
- #include<QPushButton>
- int main(int argc, char ** argv)
- {
- QApplication app(argc,argv);
- QPushButton *a=new QPushButton("quit");
- a->show();
- return app.exec();
- }
出现的 编译错误信息- 为项目QT执行构建步骤 ...
- 配置没有改变, 跳过 qmake 步骤.
- 正在启动 "D:\QtSDK\mingw\bin\mingw32-make.exe"
- D:/QtSDK/mingw/bin/mingw32-make -f Makefile.Debug
- mingw32-make[1]: Entering directory `D:/QT'
- g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore" -I"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui" -I"..\QtSDK\Desktop\Qt\4.7.3\mingw\include" -I"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"debug" -I"..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o debug\main.o main.cpp
- mingw32-make[1]: Leaving directory `D:/QT'
- process_begin: CreateProcess(NULL, C:/cygwin/bin /sh.exe -c "g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I\"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtCore\" -I\"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\QtGui\" -I\"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\" -I\"..\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt\" -I\"debug\" -I\"..\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++\" -o debug\main.o main.cpp", ...) failed.
- make (e=5): 拒绝访问。
- mingw32-make[1]: *** [debug/main.o] Error 5
- mingw32-make: *** [debug] Error 2
- 进程"D:\QtSDK\mingw\bin\mingw32-make.exe"退出,退出代码 2 。
- 构建项目QT 时发生错误 (目标: 桌面)
- 当执行构建步骤 'Make'时
貌似是无法建立.o文件 我应该怎么设置啊, 大侠们帮帮忙哈