As a COMPLETE beginner (at an advanced age!!) in C programming, I downloaded and installed Dev-C++ 4.9.9.2 with mingw. On Win XP SP3 I am looking for a windows type GUI so I downloaded and installed QT 4.4.3. (with mngw). Dev-C++ in c:\dev-C++, QT in C:\qt and mingw in C:\mingw, using the Windows install package for QT qt-win-opensource-4.4.3-mingw.exe
I then tried to compile in Dev. The compiler halts with a highlight at line 1 #include <QtGui>
Compile log (first bit, anyway): 502 errors!!!
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Qt\4.4.3\bin\myqtapp.cpp" -o
"C:\Qt\4.4.3\bin\myqtapp.exe" -pg -g3
-I"C:\Qt\4.4.3" -I"C:\Qt\4.4.3\include\QtGui"
-I"C:\Qt\4.4.3\include\QtCore"
-I"lib\gcc\mingw32\3.4.2\include"
-I"include\c++\3.4.2\backward"
-I"include\c++\3.4.2\mingw32"
-I"include\c++\3.4.2" -I"include"
-I"C:\MinGW\include" -L"lib" -L"C:\Qt\4.4.3\lib"
-L"C:\MinGW\lib" -lgmon -pg -g3
In file included from
C:\Qt\4.4.3\bin\myqtapp.cpp:1:
C:/Qt/4.4.3/include/QtGui/QtGui:1:25:
QtCore/QtCore: No such file or directory
In file included from
C:/Qt/4.4.3/include/QtGui/qaccessible.h:1,
from
C:/Qt/4.4.3/include/QtGui/QtGui:2,
from
C:\Qt\4.4.3\bin\myqtapp.cpp:1:
C:/Qt/4.4.3/include/QtGui/../../src/gui/accessible
/qaccessible.h:41:28: QtCore/qglobal.h: No such
file or directory
C:/Qt/4.4.3/include/QtGui/../../src/gui/accessible
/qaccessible.h:42:28: QtCore/qobject.h: No such
file or directory
I have tried fiddling with the directories/bin and other settings in Dev with no success. I do appear to have 2 sub folders on C now, called mingw32, one in dev-C and the other in mingw which puzzles me.
I should state that I am pretty ignorant regarding compilation and the 'old-fashioned' Dos system of make and qmake etc, so I would appeciate a considerate hand-holding or pointing to a help file or two.
Many thanks in anticipation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need help! I have searched back 5 pages too.
As a COMPLETE beginner (at an advanced age!!) in C programming, I downloaded and installed Dev-C++ 4.9.9.2 with mingw. On Win XP SP3 I am looking for a windows type GUI so I downloaded and installed QT 4.4.3. (with mngw). Dev-C++ in c:\dev-C++, QT in C:\qt and mingw in C:\mingw, using the Windows install package for QT qt-win-opensource-4.4.3-mingw.exe
I followed the web page http://sector.ynet.sk/qt4-tutorial/preparations.html on installing in Windows and set the path etc as per. The good old "Hello world compiles fine.
I successfully composed the 'test' QT prog at http://sector.ynet.sk/qt4-tutorial/my-first-qt-gui-application.html. I also downloaded the offered zip file of the same. My listing matched that of the zip. Here is the first part of the listing:
include <QtGui>
include "myqtapp.h"
// if we include <QtGui> there is no need to include every class used: <QString>, <QFileDialog>,...
myQtApp::myQtApp(QWidget *parent)
{
setupUi(this); // this sets up GUI
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I then tried to compile in Dev. The compiler halts with a highlight at line 1 #include <QtGui>
Compile log (first bit, anyway): 502 errors!!!
Compiler: Default compiler
Executing g++.exe...
g++.exe "C:\Qt\4.4.3\bin\myqtapp.cpp" -o
"C:\Qt\4.4.3\bin\myqtapp.exe" -pg -g3
-I"C:\Qt\4.4.3" -I"C:\Qt\4.4.3\include\QtGui"
-I"C:\Qt\4.4.3\include\QtCore"
-I"lib\gcc\mingw32\3.4.2\include"
-I"include\c++\3.4.2\backward"
-I"include\c++\3.4.2\mingw32"
-I"include\c++\3.4.2" -I"include"
-I"C:\MinGW\include" -L"lib" -L"C:\Qt\4.4.3\lib"
-L"C:\MinGW\lib" -lgmon -pg -g3
In file included from
C:\Qt\4.4.3\bin\myqtapp.cpp:1:
C:/Qt/4.4.3/include/QtGui/QtGui:1:25:
QtCore/QtCore: No such file or directory
In file included from
C:/Qt/4.4.3/include/QtGui/qaccessible.h:1,
from
C:/Qt/4.4.3/include/QtGui/QtGui:2,
from
C:\Qt\4.4.3\bin\myqtapp.cpp:1:
C:/Qt/4.4.3/include/QtGui/../../src/gui/accessible
/qaccessible.h:41:28: QtCore/qglobal.h: No such
file or directory
C:/Qt/4.4.3/include/QtGui/../../src/gui/accessible
/qaccessible.h:42:28: QtCore/qobject.h: No such
file or directory
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I have tried fiddling with the directories/bin and other settings in Dev with no success. I do appear to have 2 sub folders on C now, called mingw32, one in dev-C and the other in mingw which puzzles me.
I should state that I am pretty ignorant regarding compilation and the 'old-fashioned' Dos system of make and qmake etc, so I would appeciate a considerate hand-holding or pointing to a help file or two.
Many thanks in anticipation.
hi,
I downloaded and installed Dev-C++ 4.9.9.2 with mingw. On Win XP SP3 I am
looking for a windows type GUI so I downloaded and installed QT 4.4.3.
regards,
phe9oxis,
http://www.guidebuddha.com