Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "BernardoLG" (May 4th 2008, 12:54pm)
This post has been edited 13 times, last edit by "polzleitner" (May 4th 2008, 10:31am)
This post has been edited 2 times, last edit by "datuputi" (May 4th 2008, 2:35am)
This post has been edited 2 times, last edit by "polzleitner" (May 4th 2008, 10:19am)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
C:/MinGW/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Documents and Settings/Conrado/Meus documentos/NetBeansProjects/Application_1'
gcc -c -g -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"c:\Qt\4.4.0\include\QtCore" -I"c:\Qt\4.4.0\include\QtCore" -I"c:\Qt\4.4.0\include\QtGui" -I"c:\Qt\4.4.0\include\QtGui" -I"c:\Qt\4.4.0\include" -I"." -I"c:\Qt\4.4.0\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\4.4.0\mkspecs\win32-g++" -o debug\newmain.o newmain.c
In file included from c:/Qt/4.4.0/include/QtCore/qnamespace.h:1,
from c:/Qt/4.4.0/include/QtCore/../../src/corelib/kernel/qobjectdefs.h:47,
from c:/Qt/4.4.0/include/QtCore/qobjectdefs.h:1,
from c:/Qt/4.4.0/include/QtCore/../../src/corelib/kernel/qobject.h:49,
from c:/Qt/4.4.0/include/QtCore/qobject.h:1,
from c:/Qt/4.4.0/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:47,
from c:/Qt/4.4.0/include/QtCore/qcoreapplication.h:1,
from c:/Qt/4.4.0/include/QtGui/../../src/gui/kernel/qapplication.h:47,
from c:/Qt/4.4.0/include/QtGui/qapplication.h:1,
from c:/Qt/4.4.0/include/QtGui/QApplication:1,
from newmain.c:1:
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:56: error: syntax error before "namespace"
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:60: error: syntax error before '{' token
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:127: warning: return type defaults to `int'
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h: In function `Q_DECLARE_FLAGS':
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:128: error: `Qt' undeclared (first use in this function)
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:128: error: (Each undeclared identifier is reported only once
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:128: error: for each function it appears in.)
c:/Qt/4.4.0/include/QtCore/../../src/corelib/global/qnamespace.h:128: confused by earlier errors, bailing out
mingw32-make[1]: *** [debug/newmain.o] Error 1
mingw32-make[1]: Leaving directory `C:/Documents and Settings/Conrado/Meus documentos/NetBeansProjects/Application_1'
mingw32-make: *** [debug] Error 2
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}
|
This post has been edited 1 times, last edit by "ConradoQG" (May 16th 2008, 1:16am)