ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have freshly installed SuSE 9.3, with QT developmental files and tools. Its a very fresh installation, and I installed it only because I had to develop for this specific version of QT which comes as default with SuSE 9.3.
Now the problem is when I try to compile even the "hello world" code given in QT documentation (tutorial# 1, example 1 - hello world), it gives huge amounts of compile errors!
I followed the standard method of qmake -project, qmake, make. Below are the initial few lines of compiler errors after running make (I captured these by running make 2>&1 | less):
gcc -c -pipe -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -Wall -W -O2
-march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -DQT_NO_DEBUG -DQT_SHARED -
DQT_TABLET_SUPPORT -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I. -I
/usr/include -I/usr/lib/qt3/include -o hello.o hello.c
In file included from /usr/lib/qt3/include/qwindowdefs.h:43,
/usr/lib/qt3/include/qobjectdefs.h:152: error: syntax error before "QObject"
/usr/lib/qt3/include/qobjectdefs.h:152: warning: type defaults to `int' in decla
ration of `QObject'
/usr/lib/qt3/include/qobjectdefs.h:152: warning: data definition has no type or
/usr/lib/qt3/include/qobjectdefs.h:153: error: syntax error before "QMetaObject"
/usr/lib/qt3/include/qobjectdefs.h:153: warning: type defaults to `int' in decla
ration of `QMetaObject'
/usr/lib/qt3/include/qobjectdefs.h:153: warning: data definition has no type or
/usr/lib/qt3/include/qobjectdefs.h:154: error: syntax error before "QSignal"
/usr/lib/qt3/include/qobjectdefs.h:154: warning: type defaults to `int' in decla
ration of `QSignal'
The total lines of errors printed were like almost 3500!!!
I'm clueless about what's wrong... is it not able to find some header file or something?
I'm clearly missing something basic here, because same I tried on SuSE 10 as well as SuSE 10.1, and same result, same errors...