You are not logged in.

#1 2005-03-29 14:33:44

dreamcast
Member
From: cartoon-land
Registered: 2005-03-28
Posts: 5

Qt

after installing arch linux(the basic packages ) ...  i thought that i could start learning qt.. so i installed xorg blackbox and qt but after compiling a program qmake -project && qmake && make
starts pouring tons and tons of errors ... it finishes with " confused by earlier errors, bailing out make"

a lot of warnings and errors appear that are involving qt headers


God, My brilliance is starting to become a bit of a burden

Offline

#2 2005-03-29 15:17:11

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: Qt

dreamcast wrote:

after installing arch linux(the basic packages ) ...  i thought that i could start learning qt.. so i installed xorg blackbox and qt but after compiling a program qmake -project && qmake && make
starts pouring tons and tons of errors ... it finishes with " confused by earlier errors, bailing out make"

a lot of warnings and errors appear that are involving qt headers

Answer - type "wild guess"
Did you right start with it, without logout/relogin?
This is necessary to make the QT-dir known to $PATH and friends.

-neri

Offline

#3 2005-03-31 13:12:24

dreamcast
Member
From: cartoon-land
Registered: 2005-03-28
Posts: 5

Re: Qt

everything is in place ..QTDIR KDEDIR..

/opt/qt/include/qpalette.h:50: warning: type defaults to `int' in declaration of `QColorGroupPrivate'
/opt/qt/include/qpalette.h:50: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:52: error: parse error before "Q_EXPORT"
/opt/qt/include/qpalette.h:53: error: syntax error before '{' token
/opt/qt/include/qpalette.h:56: warning: type defaults to `int' in declaration of `QColor'
/opt/qt/include/qpalette.h:56: error: parse error before '&' token
/opt/qt/include/qpalette.h:58: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:58: error: 'QColorGroup' redeclared as different kind of symbol
/opt/qt/include/qwindowdefs.h:56: error: previous declaration of 'QColorGroup' was here
/opt/qt/include/qpalette.h:58: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:59: warning: type defaults to `int' in declaration of `QBrush'
/opt/qt/include/qpalette.h:59: error: parse error before '&' token
/opt/qt/include/qpalette.h:62: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:62: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:63: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:63: error: parse error before '&' token
/opt/qt/include/qpalette.h:63: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:63: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:72: error: conflicting types for 'Link'
/opt/qt/include/qevent.h:519: error: previous definition of 'Link' was here
/opt/qt/include/qpalette.h:75: error: parse error before '&' token
/opt/qt/include/qpalette.h:76: error: parse error before '&' token
/opt/qt/include/qpalette.h:77: error: parse error before "const"
/opt/qt/include/qpalette.h:78: error: parse error before "const"
/opt/qt/include/qpalette.h:80: error: parse error before '&' token
/opt/qt/include/qpalette.h:81: error: parse error before '&' token
/opt/qt/include/qpalette.h:82: error: parse error before '&' token
/opt/qt/include/qpalette.h:83: error: parse error before '&' token
/opt/qt/include/qpalette.h:84: error: parse error before '&' token
/opt/qt/include/qpalette.h:85: error: parse error before '&' token
/opt/qt/include/qpalette.h:86: error: parse error before '&' token
/opt/qt/include/qpalette.h:87: error: parse error before '&' token
/opt/qt/include/qpalette.h:89: error: parse error before '&' token
/opt/qt/include/qpalette.h:90: error: parse error before '&' token
/opt/qt/include/qpalette.h:91: error: parse error before '&' token
/opt/qt/include/qpalette.h:92: error: parse error before '&' token
/opt/qt/include/qpalette.h:93: error: parse error before '&' token
/opt/qt/include/qpalette.h:94: error: parse error before '&' token
/opt/qt/include/qpalette.h:95: error: parse error before '&' token
/opt/qt/include/qpalette.h:96: error: parse error before '&' token
/opt/qt/include/qpalette.h:104: warning: type defaults to `int' in declaration of `d'
/opt/qt/include/qpalette.h:104: error: conflicting types for 'd'
/opt/qt/include/qcolor.h:172: error: previous declaration of 'd' was here
/opt/qt/include/qpalette.h:104: error: conflicting types for 'd'
/opt/qt/include/qevent.h:538: error: previous declaration of 'd' was here
/opt/qt/include/qpalette.h:104: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:106: error: parse error before "class"
/opt/qt/include/qpalette.h:106: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:106: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:110: error: parse error before "Q_EXPORT"
/opt/qt/include/qpalette.h:111: error: syntax error before '{' token
/opt/qt/include/qpalette.h:114: warning: type defaults to `int' in declaration of `QColor'
/opt/qt/include/qpalette.h:114: error: parse error before '&' token
/opt/qt/include/qpalette.h:114: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:114: error: 'QPalette' redeclared as different kind of symbol
/opt/qt/include/qpalette.h:106: error: previous declaration of 'QPalette' was here
/opt/qt/include/qpalette.h:114: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:115: warning: type defaults to `int' in declaration of `QColor'
/opt/qt/include/qpalette.h:115: error: parse error before '&' token
/opt/qt/include/qpalette.h:115: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:115: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:116: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:116: error: parse error before '&' token
/opt/qt/include/qpalette.h:117: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:117: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:118: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:118: error: parse error before '&' token
/opt/qt/include/qpalette.h:118: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:118: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:124: error: parse error before '&' token
/opt/qt/include/qpalette.h:125: error: parse error before '&' token
/opt/qt/include/qpalette.h:126: error: parse error before ':' token
/opt/qt/include/qpalette.h:127: error: parse error before ':' token
/opt/qt/include/qpalette.h:129: error: parse error before ':' token
/opt/qt/include/qpalette.h:130: error: parse error before ':' token
/opt/qt/include/qpalette.h:132: error: parse error before "copy"
/opt/qt/include/qpalette.h:132: warning: return type defaults to `int'
/opt/qt/include/qpalette.h: In function `copy':
/opt/qt/include/qpalette.h:132: warning: empty declaration
/opt/qt/include/qpalette.h:134: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:134: error: parse error before '&' token
/opt/qt/include/qpalette.h:134: error: declaration for parameter "QColorGroup" but no such parameter
/opt/qt/include/qpalette.h:134: error: request for member `active' in something not a structure or union
/opt/qt/include/qpalette.h: At top level:
/opt/qt/include/qpalette.h:135: error: parse error before '&' token
/opt/qt/include/qpalette.h:136: error: parse error before '&' token
/opt/qt/include/qpalette.h:138: error: parse error before '&' token
/opt/qt/include/qpalette.h:141: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:141: error: parse error before '&' token
/opt/qt/include/qpalette.h:142: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:142: error: parse error before '&' token
/opt/qt/include/qpalette.h:143: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:143: error: parse error before '&' token
/opt/qt/include/qpalette.h:145: warning: type defaults to `int' in declaration of `QColorGroup'
/opt/qt/include/qpalette.h:145: error: parse error before '&' token
/opt/qt/include/qpalette.h: In function `setNormal':
/opt/qt/include/qpalette.h:145: error: `cg' undeclared (first use in this function)
/opt/qt/include/qpalette.h: At top level:
/opt/qt/include/qpalette.h:148: error: parse error before "operator"
/opt/qt/include/qpalette.h:151: warning: type defaults to `int' in declaration of `QPalette'
/opt/qt/include/qpalette.h:151: error: parse error before '&' token
/opt/qt/include/qpalette.h:151: warning: type defaults to `int' in declaration of `isCopyOf'
/opt/qt/include/qpalette.h:151: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h: In function `serialNumber':
/opt/qt/include/qpalette.h:153: error: parse error before '{' token
/opt/qt/include/qpalette.h:168: error: parse error before "inactive"
/opt/qt/include/qpalette.h:167: warning: unused variable `ser_no'
/opt/qt/include/qpalette.h: At top level:
/opt/qt/include/qpalette.h:169: warning: type defaults to `int' in declaration of `data'
/opt/qt/include/qpalette.h:169: warning: data definition has no type or storage class
/opt/qt/include/qpalette.h:170: error: parse error before '}' token
/opt/qt/include/qpalette.h:178: error: parse error before "QDataStream"
In file included from /opt/qt/include/qwidget.h:46,
                 from /opt/qt/include/qdesktopwidget.h:40,
                 from /opt/qt/include/qapplication.h:42,
                 from prim.c:1:
/opt/qt/include/qfont.h:47: warning: type defaults to `int' in declaration of `QFontPrivate'
/opt/qt/include/qfont.h:47: warning: data definition has no type or storage class
/opt/qt/include/qfont.h:48: error: parse error before "QStringList"
/opt/qt/include/qfont.h:48: warning: type defaults to `int' in declaration of `QStringList'
/opt/qt/include/qfont.h:48: error: 'QStringList' redeclared as different kind of symbol
/opt/qt/include/qstringlist.h:66: error: previous definition of 'QStringList' was here
/opt/qt/include/qfont.h:48: error: 'QStringList' redeclared as different kind of symbol
/opt/qt/include/qstringlist.h:64: error: previous definition of 'QStringList' was here
/opt/qt/include/qfont.h:48: warning: data definition has no type or storage class
/opt/qt/include/qfont.h:49: error: parse error before "QTextFormatCollection"
/opt/qt/include/qfont.h:49: warning: type defaults to `int' in declaration of `QTextFormatCollection'
/opt/qt/include/qfont.h:49: warning: data definition has no type or storage class
/opt/qt/include/qfont.h:51: error: parse error before "Q_EXPORT"
/opt/qt/include/qfont.h:52: error: syntax error before '{' token
/opt/qt/include/qfont.h:77: error: conflicting types for 'Light'
/opt/qt/include/qpalette.h:70: error: previous definition of 'Light' was here
/opt/qt/include/qfont.h:78: error: conflicting types for 'Normal'
/opt/qt/include/qpalette.h:122: error: previous definition of 'Normal' was here
/opt/qt/include/qfont.h:97: warning: type defaults to `int' in declaration of `QFont'
/opt/qt/include/qfont.h:97: error: 'QFont' redeclared as different kind of symbol
/opt/qt/include/qwindowdefs.h:65: error: previous declaration of 'QFont' was here
/opt/qt/include/qfont.h:97: warning: data definition has no type or storage class
/opt/qt/include/qfont.h:103: warning: type defaults to `int' in declaration of `QString'
/opt/qt/include/qfont.h:103: error: parse error before '&' token
/opt/qt/include/qfont.h:104: warning: type defaults to `int' in declaration of `QFont'
/opt/qt/include/qfont.h:104: warning: data definition has no type or storage class
/opt/qt/include/qfont.h:107: warning: type defaults to `int' in declaration of `QFont'
/opt/qt/include/qfont.h:107: error: parse error before '&' token
/opt/qt/include/qfont.h:107: warning: type defaults to `int' in declaration of `QFont'
/opt/qt/include/qfont.h:107: warning: data definition has no type or storage class
/opt/qt/include/qfont.h:111: warning: return type defaults to `int'
/opt/qt/include/qfont.h: In function `family':
/opt/qt/include/qfont.h:111: warning: empty declaration
/opt/qt/include/qfont.h:112: warning: type defaults to `int' in declaration of `QString'
/opt/qt/include/qfont.h:112: error: parse error before '&' token
/opt/qt/include/qfont.h:114: error: parse error before "const"
/opt/qt/include/qfont.h:112: error: declaration for parameter "setFamily" but no such parameter
/opt/qt/include/qfont.h:114: error: declaration for parameter "pointSize" but no such parameter
/opt/qt/include/qfont.h:205: error: `Latin' undeclared (first use in this function)
/opt/qt/include/qfont.h:206: error: `Greek' undeclared (first use in this function)
/opt/qt/include/qfont.h:207: error: `Cyrillic' undeclared (first use in this function)
/opt/qt/include/qfont.h:208: error: `Armenian' undeclared (first use in this function)
/opt/qt/include/qfont.h:209: error: `Georgian' undeclared (first use in this function)
/opt/qt/include/qfont.h:210: error: `Runic' undeclared (first use in this function)
/opt/qt/include/qfont.h:211: error: `Ogham' undeclared (first use in this function)
/opt/qt/include/qfont.h:212: error: `SpacingModifiers' undeclared (first use in this function)
/opt/qt/include/qfont.h:213: error: `CombiningMarks' undeclared (first use in this function)
/opt/qt/include/qfont.h:216: error: `Hebrew' undeclared (first use in this function)
/opt/qt/include/qfont.h:217: error: `Arabic' undeclared (first use in this function)
/opt/qt/include/qfont.h:218: error: `Syriac' undeclared (first use in this function)
/opt/qt/include/qfont.h:219: error: `Thaana' undeclared (first use in this function)
/opt/qt/include/qfont.h:222: error: `Devanagari' undeclared (first use in this function)
/opt/qt/include/qfont.h:223: error: `Bengali' undeclared (first use in this function)
/opt/qt/include/qfont.h:224: error: `Gurmukhi' undeclared (first use in this function)
/opt/qt/include/qfont.h:225: error: `Gujarati' undeclared (first use in this function)
/opt/qt/include/qfont.h:226: error: `Oriya' undeclared (first use in this function)
/opt/qt/include/qfont.h:227: error: `Tamil' undeclared (first use in this function)
/opt/qt/include/qfont.h:228: error: `Telugu' undeclared (first use in this function)
/opt/qt/include/qfont.h:229: error: `Kannada' undeclared (first use in this function)
/opt/qt/include/qfont.h:230: error: `Malayalam' undeclared (first use in this function)
/opt/qt/include/qfont.h:231: error: `Sinhala' undeclared (first use in this function)
/opt/qt/include/qfont.h:232: error: `Thai' undeclared (first use in this function)
/opt/qt/include/qfont.h:233: error: `Lao' undeclared (first use in this function)
/opt/qt/include/qfont.h:234: error: `Tibetan' undeclared (first use in this function)
/opt/qt/include/qfont.h:235: error: `Myanmar' undeclared (first use in this function)
/opt/qt/include/qfont.h:236: error: `Khmer' undeclared (first use in this function)
/opt/qt/include/qfont.h:239: error: `Han' undeclared (first use in this function)
/opt/qt/include/qfont.h:240: error: `Hiragana' undeclared (first use in this function)
/opt/qt/include/qfont.h:241: error: `Katakana' undeclared (first use in this function)
/opt/qt/include/qfont.h:242: error: `Hangul' undeclared (first use in this function)
/opt/qt/include/qfont.h:243: error: `Bopomofo' undeclared (first use in this function)
/opt/qt/include/qfont.h:244: error: `Yi' undeclared (first use in this function)
/opt/qt/include/qfont.h:247: error: `Ethiopic' undeclared (first use in this function)
/opt/qt/include/qfont.h:248: error: `Cherokee' undeclared (first use in this function)
/opt/qt/include/qfont.h:249: error: `CanadianAboriginal' undeclared (first use in this function)
/opt/qt/include/qfont.h:250: error: `Mongolian' undeclared (first use in this function)
/opt/qt/include/qfont.h:253: error: `CurrencySymbols' undeclared (first use in this function)
/opt/qt/include/qfont.h:254: error: `LetterlikeSymbols' undeclared (first use in this function)
/opt/qt/include/qfont.h:255: error: `NumberForms' undeclared (first use in this function)
/opt/qt/include/qfont.h:256: error: `MathematicalOperators' undeclared (first use in this function)
/opt/qt/include/qfont.h:257: error: `TechnicalSymbols' undeclared (first use in this function)
/opt/qt/include/qfont.h:258: error: `GeometricSymbols' undeclared (first use in this function)
/opt/qt/include/qfont.h:259: error: `MiscellaneousSymbols' undeclared (first use in this function)
/opt/qt/include/qfont.h:260: error: `EnclosedAndSquare' undeclared (first use in this function)
/opt/qt/include/qfont.h:261: error: `Braille' undeclared (first use in this function)
/opt/qt/include/qfont.h:263: error: `Unicode' undeclared (first use in this function)
/opt/qt/include/qfont.h:266: error: `Tagalog' undeclared (first use in this function)
/opt/qt/include/qfont.h:267: error: `Hanunoo' undeclared (first use in this function)
/opt/qt/include/qfont.h:268: error: `Buhid' undeclared (first use in this function)
/opt/qt/include/qfont.h:269: error: `Tagbanwa' undeclared (first use in this function)
/opt/qt/include/qfont.h:271: error: `KatakanaHalfWidth' undeclared (first use in this function)
/opt/qt/include/qfont.h:274: error: `Limbu' undeclared (first use in this function)
/opt/qt/include/qfont.h:275: error: `TaiLe' undeclared (first use in this function)
/opt/qt/include/qfont.h:279: error: `NScripts' undeclared (first use in this function)
/opt/qt/include/qfont.h:280: error: `UnknownScript' undeclared (first use in this function)
/opt/qt/include/qfont.h:282: error: `NoScript' undeclared (first use in this function)
/opt/qt/include/qfont.h:288: error: `Han_Japanese' undeclared (first use in this function)
/opt/qt/include/qfont.h:289: error: `Han_SimplifiedChinese' undeclared (first use in this function)
/opt/qt/include/qfont.h:290: error: `Han_TraditionalChinese' undeclared (first use in this function)
/opt/qt/include/qfont.h:291: error: `Han_Korean' undeclared (first use in this function)
/opt/qt/include/qfont.h:295: error: `LastPrivateScript' undeclared (first use in this function)
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: warning: left-hand operand of comma expression has no effect
/opt/qt/include/qfont.h:295: error: parse error before '}' token
/opt/qt/include/qfont.h: At top level:
/opt/qt/include/qfont.h:297: error: parse error before "defaultFamily"
/opt/qt/include/qfont.h:297: warning: return type defaults to `int'
/opt/qt/include/qfont.h: In function `defaultFamily':
/opt/qt/include/qfont.h:297: warning: empty declaration
/opt/qt/include/qfont.h:298: error: parse error before "QString"
/opt/qt/include/qfont.h:348: warning: implicit declaration of function `weight'
/opt/qt/include/qfont.h: At top level:
/opt/qt/include/qfont.h:351: error: parse error before ':' token
In file included from /opt/qt/include/qwidget.h:47,
                 from /opt/qt/include/qdesktopwidget.h:40,
                 from /opt/qt/include/qapplication.h:42,
                 from prim.c:1:
/opt/qt/include/qfontmetrics.h:50: warning: type defaults to `int' in declaration of `QTextCodec'
/opt/qt/include/qfontmetrics.h:50: warning: data definition has no type or storage class
/opt/qt/include/qfontmetrics.h:51: error: parse error before "QTextParag"
/opt/qt/include/qfontmetrics.h:51: warning: type defaults to `int' in declaration of `QTextParag'
/opt/qt/include/qfontmetrics.h:51: warning: data definition has no type or storage class
/opt/qt/include/qfontmetrics.h:53: error: parse error before "Q_EXPORT"
/opt/qt/include/qfontmetrics.h:54: error: syntax error before '{' token
/opt/qt/include/qfontmetrics.h:57: warning: type defaults to `int' in declaration of `QFont'
/opt/qt/include/qfontmetrics.h:57: error: parse error before '&' token
/opt/qt/include/qfontmetrics.h:57: warning: type defaults to `int' in declaration of `QFontMetrics'
/opt/qt/include/qfontmetrics.h:57: error: 'QFontMetrics' redeclared as different kind of symbol
/opt/qt/include/qwindowdefs.h:66: error: previous declaration of 'QFontMetrics' was here
/opt/qt/include/qfontmetrics.h:57: warning: data definition has no type or storage class
/opt/qt/include/qfontmetrics.h:58: warning: type defaults to `int' in declaration of `QFontMetrics'
/opt/qt/include/qfontmetrics.h:58: error: parse error before '&' token
/opt/qt/include/qfontmetrics.h:58: warning: type defaults to `int' in declaration of `QFontMetrics'
/opt/qt/include/qfontmetrics.h:58: warning: data definition has no type or storage class
/opt/qt/include/qfontmetrics.h: In function `ascent':
/opt/qt/include/qfontmetrics.h:63: warning: empty declaration
/opt/qt/include/qfontmetrics.h:64: error: parse error before "const"
/opt/qt/include/qfontmetrics.h:64: error: declaration for parameter "descent" but no such parameter
/opt/qt/include/qfontmetrics.h:80: warning: implicit declaration of function `width'
/opt/qt/include/qfontmetrics.h:80: error: parse error before "c"
/opt/qt/include/qfontmetrics.h: At top level:
/opt/qt/include/qfontmetrics.h:83: warning: type defaults to `int' in declaration of `QString'
/opt/qt/include/qfontmetrics.h:83: error: parse error before '&' token
/opt/qt/include/qfontmetrics.h: In function `charWidth':
/opt/qt/include/qfontmetrics.h:83: warning: empty declaration
/opt/qt/include/qfontmetrics.h:84: error: parse error before "QRect"
In file included from /opt/qt/include/qwidget.h:48,
                 from /opt/qt/include/qdesktopwidget.h:40,
                 from /opt/qt/include/qapplication.h:42,
                 from prim.c:1:
/opt/qt/include/qfontinfo.h:49: error: parse error before "const"
/opt/qt/include/qfontinfo.h:50: error: parse error before "const"
/opt/qt/include/qfontinfo.h:51: error: parse error before "const"
/opt/qt/include/qfontinfo.h:52: error: called object is not a function
/opt/qt/include/qfontinfo.h:54: error: parse error before "QFontInfo"
/opt/qt/include/qfontinfo.h:56: error: parse error before "family"
/opt/qt/include/qfontinfo.h: In function `pixelSize':
/opt/qt/include/qfontinfo.h:57: warning: empty declaration
/opt/qt/include/qfontinfo.h:58: error: parse error before "const"
/opt/qt/include/qfontinfo.h:58: error: declaration for parameter "pointSize" but no such parameter
/opt/qt/include/qfontinfo.h:58: error: declaration for parameter "pointSize" but no such parameter
/opt/qt/include/qfontinfo.h:60: error: conflicting types for 'weight'
/opt/qt/include/qfontinfo.h:60: note: a parameter list with an ellipsis can't match an empty parameter name list declaration
/opt/qt/include/qfont.h:348: error: previous implicit declaration of 'weight' was here
/opt/qt/include/qfontinfo.h:60: error: parse error before "const"
/opt/qt/include/qfontinfo.h:79: error: parse error before "friend"
/opt/qt/include/qfontinfo.h:84: warning: type defaults to `int' in declaration of `bool'
/opt/qt/include/qfontinfo.h:84: warning: variable 'bool' declared `inline'
/opt/qt/include/qfontinfo.h:84: error: parse error before "QFontInfo"
In file included from /opt/qt/include/qwidget.h:49,
                 from /opt/qt/include/qdesktopwidget.h:40,
                 from /opt/qt/include/qapplication.h:42,
                 from prim.c:1:
/opt/qt/include/qsizepolicy.h:68: warning: empty declaration
/opt/qt/include/qsizepolicy.h:70: error: parse error before "QSizePolicy"
/opt/qt/include/qsizepolicy.h:114: warning: type defaults to `int' in declaration of `QSizePolicy'
/opt/qt/include/qsizepolicy.h:114: warning: variable 'QSizePolicy' declared `inline'
/opt/qt/include/qsizepolicy.h:114: error: parse error before ':' token
In file included from /opt/qt/include/qdesktopwidget.h:40,
                 from /opt/qt/include/qapplication.h:42,
                 from prim.c:1:
/opt/qt/include/qwidget.h:53: warning: empty declaration
/opt/qt/include/qwidget.h:54: warning: empty declaration
/opt/qt/include/qwidget.h:55: error: parse error before "class"
/opt/qt/include/qwidget.h:62: warning: type defaults to `int' in declaration of `bool'
/opt/qt/include/qwidget.h:62: error: redeclaration of 'bool' with no linkage
/opt/qt/include/qfontinfo.h:84: error: previous declaration of 'bool' was here
/opt/qt/include/qwidget.h:62: error: parse error before "qt_static_property"
/opt/qt/include/qwidget.h:62: warning: type defaults to `int' in declaration of `QMetaObject'
/opt/qt/include/qwidget.h:62: error: parse error before '*' token
/opt/qt/include/qwidget.h:62: warning: type defaults to `int' in declaration of `QString'
/opt/qt/include/qwidget.h:62: error: parse error before "trUtf8"
/opt/qt/include/qwidget.h:138: warning: "struct QTLWExtra" declared inside parameter list
/opt/qt/include/qwidget.h:138: warning: its scope is only this definition or declaration, which is probably not what you want
/opt/qt/include/qwidget.h:138: warning: "struct QWExtra" declared inside parameter list
/opt/qt/include/qwidget.h:138: warning: "enum ExpandData" declared inside parameter list
/opt/qt/include/qfontinfo.h:48: warning: label `public' defined but not used
/opt/qt/include/qfontinfo.h:77: warning: unused variable `fscript'
/opt/qt/include/qfontinfo.h:84: warning: unused variable `bool'
/opt/qt/include/qsizepolicy.h:114: warning: unused variable `QSizePolicy'
/opt/qt/include/qwidget.h:62: warning: unused variable `bool'
/opt/qt/include/qwidget.h:62: warning: unused variable `QMetaObject'
/opt/qt/include/qwidget.h:62: warning: unused variable `QString'
/opt/qt/include/qwidget.h:138: error: parse error before "const"
/opt/qt/include/qwidget.h:139: warning: "enum Stretch" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Weight" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum StyleStrategy" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum ColorGroup" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum ColorRole" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct QBrushData" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct D32" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct D8" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum ColorModel" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "union QPDevCmdParam" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct QPaintDeviceX11Data" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Action" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Reason" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _IO_FILE_plus" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum __codecvt_result" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _IO_marker" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _IO_jump_t" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous struct declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct __gconv_info" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct __gconv_trans_data" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct __gconv_loaded_object" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct __gconv_step_data" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct __gconv_step" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous enum declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous enum declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous struct declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous struct declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous struct declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _IO_FILE" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct QRegionPrivate" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _XRegion" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _XGC" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "union _XEvent" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct _XDisplay" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Corner" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum StringComparisonMode" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum BackgroundMode" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum TimeSpec" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum DateFormat" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Dock" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum AnchorAttribute" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum TextFormat" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum CursorShape" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum UIEffect" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum WindowsVersion" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum MacintoshVersion" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum BrushStyle" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum PenJoinStyle" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum PenCapStyle" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum PenStyle" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum RasterOp" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum ArrowType" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Key" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Modifier" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum SequenceMatch" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum GUIStyle" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum PaintUnit" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum BGMode" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum ImageConversionFlags" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum WindowState" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum WidgetFlags" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum WidgetState" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum TextFlags" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum AlignmentFlags" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum SortOrder" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Orientation" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum ButtonState" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum CombiningClass" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Joining" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Decomposition" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Direction" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Category" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: anonymous struct declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "enum Optimization" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct Q_EXPORT" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct QMetaData" declared inside parameter list
/opt/qt/include/qwidget.h:139: warning: "struct QUObject" declared inside parameter list
/opt/qt/include/qwidget.h:139: confused by earlier errors, bailing out

only a part of the errors ...
ps:i'm trying to compile the first example from the first tutorial from the qt doc


God, My brilliance is starting to become a bit of a burden

Offline

#4 2005-04-03 15:32:17

dreamcast
Member
From: cartoon-land
Registered: 2005-03-28
Posts: 5

Re: Qt

guess what?....
it seems that make wasn't able to compile the source cause the extension to the file was c if i put it cpp or cc it works .

so use *.cpp not *.c big_smile

btw ...arch linux rulz


God, My brilliance is starting to become a bit of a burden

Offline

Board footer

Powered by FluxBB