[LIP] Qt help

komal <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <002001c40f5a$076d66a0$2727013d@komal>
Hi
I am trying to compile very first hello world application from Qtdoc . it
used to compile without any error on  Mandrake 9.2 but on Fedora core 1 it
is not compiling . Pls take a look at a error and give me some pointer to go
ahead.

Thank you

komal



cc1: warning: "-fno-use-cxa-atexit" is valid for C++ but not for C/ObjC
In file included from /usr/lib/qt-3.1/include/qwindowdefs.h:43,
                 from /usr/lib/qt-3.1/include/qwidget.h:42,
                 from /usr/lib/qt-3.1/include/qdesktopwidget.h:40,
                 from /usr/lib/qt-3.1/include/qapplication.h:42,
                 from hello.c:1:
/usr/include/stdio.h:480: error: syntax error before "FILE"
/usr/include/stdio.h:480: error: storage class specified for parameter
`putc'
/usr/include/stdio.h:486: error: storage class specified for parameter
`putchar'
/usr/include/stdio.h:500: error: syntax error before "FILE"
/usr/include/stdio.h:500: error: storage class specified for parameter
`fputc_unlocked'
/usr/include/stdio.h:508: error: syntax error before "FILE"
/usr/include/stdio.h:508: error: storage class specified for parameter
declared here
/usr/lib/qt-3.1/include/qpaintdevice.h:132: error: storage class specified
for parameter `x11AppCells'
/usr/lib/qt-3.1/include/qpaintdevice.h:263: error: redeclaration of `Qt'
/usr/lib/qt-3.1/include/qpaintdevice.h:262: error: `Qt' previously declared
here
/usr/lib/qt-3.1/include/qpaintdevice.h:263: error: syntax error before ':'
token
/usr/lib/qt-3.1/include/qpaintdevice.h:264: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qpaintdevice.h:264: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qpaintdevice.h:264: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qpaintdevice.h:137: error: `bool' previously
declared here
parameter `QColorGroup'
/usr/lib/qt-3.1/include/qpalette.h:157: error: conflicting types for
`QColorGroup'
/usr/lib/qt-3.1/include/qpalette.h:134: error: previous declaration of
/usr/lib/qt-3.1/include/qpalette.h:161: error: syntax error before '&' token
/usr/lib/qt-3.1/include/qpalette.h:162: error: syntax error before ':' token
/usr/lib/qt-3.1/include/qpalette.h:164: error: syntax error before ':' token
/usr/lib/qt-3.1/include/qpalette.h:168: error: syntax error before
"QColorGroup"
In file included from /usr/lib/qt-3.1/include/qwidget.h:46,
                 from /usr/lib/qt-3.1/include/qdesktopwidget.h:40,
                 from /usr/lib/qt-3.1/include/qapplication.h:42,
                 from hello.c:1:
/usr/lib/qt-3.1/include/qfont.h:73: warning: enum defined inside parms
/usr/lib/qt-3.1/include/qfont.h:73: warning: empty declaration
/usr/lib/qt-3.1/include/qfont.h:76: error: conflicting types for `Light'
/usr/lib/qt-3.1/include/qpalette.h:70: error: previous declaration of
`Light'
/usr/lib/qt-3.1/include/qfont.h:77: error: conflicting types for `Normal'
/usr/lib/qt-3.1/include/qpalette.h:122: error: previous declaration of
`Normal'
/
/usr/lib/qt-3.1/include/qfontmetrics.h:95: error: `reset' previously
declared here
/usr/lib/qt-3.1/include/qnamespace.h:90: error: previous declaration of
`Horizontal'
class"
/usr/lib/qt-3.1/include/qwidget.h:62: warning: type defaults to `int' in
declaration of `bool'
/usr/lib/qt-3.1/include/qwidget.h:62: error: storage class specified for
parameter `bool'
/ `x'
/usr/lib/qt-3.1/include/qtranslator.h:74: error: syntax error before '&'
token
/usr/lib/qt-3.1/include/qtranslator.h:98: warning: enum defined inside parms
/usr/lib/qt-3.1/include/qtranslator.h:98: warning: empty declaration
/usr/lib/qt-3.1/include/qtranslator.h:99: error: syntax error before '}'
token
/usr/lib/qt-3.1/include/qtranslator.h:104: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qtranslator.h:104: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qtranslator.h:104: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qdesktopwidget.h:47: error: `bool' previously
declared here
/usr/lib/qt-3.1/include/qtranslator.h:104: error: syntax error before
"qt_static_property"
/usr/lib/qt-3.1/include/qtranslator.h:104: warning: type defaults to `int'
in declaration of `QMetaObject'
/usr/lib/qt-3.1/include/qtranslator.h:104: error: storage class specified
for parameter `QMetaObject'
/usr/lib/qt-3.1/include/qtranslator.h:104: error: redeclaration of
`QMetaObject'
/usr/lib/qt-3.1/include/qdesktopwidget.h:47: error: `QMetaObject' previously
declared here
/usr/lib/qt-3.1/include/qtranslator.h:104: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qtranslator.h:104: warning: type defaults to `int'
in declaration of `QString'
/usr/lib/qt-3.1/include/qtranslator.h:104: error: storage class specified
for parameter `QString'
/usr/lib/qt-3.1/include/qtranslator.h:104: error: redeclaration of `QString'
/usr/lib/qt-3.1/include/qdesktopwidget.h:47: error: `QString' previously
declared here
/usr/lib/qt-3.1/include/qtranslator.h:104: error: syntax error before
"trUtf8"
/usr/lib/qt-3.1/include/qtranslator.h:129: warning: enum defined inside
parms
/usr/lib/qt-3.1/include/qtranslator.h:129: warning: empty declaration
/usr/lib/qt-3.1/include/qtranslator.h:131: error: syntax error before "bool"
/usr/lib/qt-3.1/include/qtranslator.h:133: warning: type defaults to `int'
in declaration of `QTranslatorMessage'
/usr/lib/qt-3.1/include/qtranslator.h:133: error: syntax error before '&'
token
/usr/lib/qt-3.1/include/qtranslator.h:134: warning: type defaults to `int'
in declaration of `QString'
/usr/lib/qt-3.1/include/qtranslator.h:134: error: syntax error before '&'
token
/usr/lib/qt-3.1/include/qtranslator.h:134: error: redeclaration of `insert'
/usr/lib/qt-3.1/include/qtranslator.h:133: error: `insert' previously
declared here
/usr/lib/qt-3.1/include/qtranslator.h:138: error: redeclaration of `remove'
/usr/lib/qt-3.1/include/qmap.h:737: error: `remove' previously declared here
/usr/lib/qt-3.1/include/qtranslator.h:138: error: syntax error before '{'
token
/usr/lib/qt-3.1/include/qtranslator.h:143: error: syntax error before '='
token
/usr/lib/qt-3.1/include/qtranslator.h:146: error: syntax error before
"QValueList"
In file included from /usr/lib/qt-3.1/include/qptrlist.h:40,
                 from /usr/lib/qt-3.1/include/qstrlist.h:43,
                 from /usr/lib/qt-3.1/include/qapplication.h:46,
                 from hello.c:1:
/usr/lib/qt-3.1/include/qglist.h:80: error: syntax error before ':' token
/usr/lib/qt-3.1/include/qglist.h:81: error: syntax error before ':' token
/usr/lib/qt-3.1/include/qglist.h:83: error: syntax error before '*' token
/usr/lib/qt-3.1/include/qglist.h:97: error: redeclaration of `sort'
/usr/lib/qt-3.1/include/qgarray.h:101: error: `sort' previously declared
here
/usr/lib/qt-3.1/include/qglist.h:98: error: redeclaration of `clear'
/usr/lib/qt-3.1/include/qgdict.h:136: error: `clear' previously declared
here
/usr/lib/qt-3.1/include/qglist.h:100: error: syntax error before ':' token
/usr/lib/qt-3.1/include/qglist.h:101: error: syntax error before ':' token
/usr/lib/qt-3.1/include/qglist.h:101: error: redeclaration of `find'
/usr/lib/qt-3.1/include/qstringlist.h:66: error: syntax error before "split"
//usr/lib/qt-3.1/include/qapplication.h:206: error: storage class specified
for parameter `setLibraryPaths'
/usr/lib/qt-3.1/include/qapplication.h:207: warning: type defaults to `int'
in declaration of `QStringList'
/usr/lib/qt-3.1/include/qapplication.h:207: error: storage class specified
for parameter `QStringList'
/usr/lib/qt-3.1/include/qapplication.h:207: error: redeclaration of
`QStringList'
/usr/lib/qt-3.1/include/qstringlist.h:69: error: `QStringList' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:207: error: syntax error before
"libraryPaths"
/usr/lib/qt-3.1/include/qapplication.h:208: warning: type defaults to `int'
in declaration of `QString'
/usr/lib/qt-3.1/include/qapplication.h:208: error: syntax error before '&'
token
/usr/lib/qt-3.1/include/qapplication.h:208: error: storage class specified
for parameter `addLibraryPath'
/usr/lib/qt-3.1/include/qapplication.h:209: warning: type defaults to `int'
in declaration of `QString'
/usr/lib/qt-3.1/include/qapplication.h:209: error: syntax error before '&'
token
/usr/lib/qt-3.1/include/qapplication.h:209: error: storage class specified
for parameter `removeLibraryPath'
/usr/lib/qt-3.1/include/qapplication.h:211: error: storage class specified
for parameter `setStartDragTime'
/usr/lib/qt-3.1/include/qapplication.h:212: error: storage class specified
for parameter `startDragTime'
/usr/lib/qt-3.1/include/qapplication.h:213: error: storage class specified
for parameter `setStartDragDistance'
/usr/lib/qt-3.1/include/qapplication.h:214: error: storage class specified
for parameter `startDragDistance'
/usr/lib/qt-3.1/include/qapplication.h:216: error: syntax error before "b"
/usr/lib/qt-3.1/include/qapplication.h:216: error: storage class specified
for parameter `setReverseLayout'
/usr/lib/qt-3.1/include/qapplication.h:217: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:217: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qapplication.h:330: error: redeclaration of `QFont'
/usr/lib/qt-3.1/include/qapplication.h:113: error: `QFont' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:330: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qapplication.h:332: warning: type defaults to `int'
in declaration of `QCursor'
/usr/lib/qt-3.1/include/qapplication.h:332: error: storage class specified
for parameter `QCursor'
/usr/lib/qt-3.1/include/qapplication.h:332: error: redeclaration of
`QCursor'
/usr/lib/qt-3.1/include/qapplication.h:102: error: `QCursor' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:332: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qapplication.h:334: warning: type defaults to `int'
in declaration of `QEventLoop'
/usr/lib/qt-3.1/include/qapplication.h:334: error: storage class specified
for parameter `QEventLoop'
/usr/lib/qt-3.1/include/qapplication.h:334: error: redeclaration of
`QEventLoop'
/usr/lib/qt-3.1/include/qapplication.h:138: error: `QEventLoop' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:334: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qapplication.h:335: error: storage class specified
for parameter `app_tracking'
/usr/lib/qt-3.1/include/qapplication.h:336: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:336: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qapplication.h:336: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:266: error: `bool' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:336: error: syntax error before
"is_app_running"
/usr/lib/qt-3.1/include/qapplication.h:337: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:337: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qapplication.h:337: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:336: error: `bool' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:337: error: syntax error before
"is_app_closing"
/usr/lib/qt-3.1/include/qapplication.h:338: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:338: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qapplication.h:338: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:337: error: `bool' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:338: error: syntax error before
"app_exit_loop"
/usr/lib/qt-3.1/include/qapplication.h:339: error: storage class specified
for parameter `loop_level'
/usr/lib/qt-3.1/include/qapplication.h:340: warning: type defaults to `int'
in declaration of `QWidget'
/usr/lib/qt-3.1/include/qapplication.h:340: error: storage class specified
for parameter `QWidget'
/usr/lib/qt-3.1/include/qapplication.h:340: error: redeclaration of
`QWidget'
/usr/lib/qt-3.1/include/qapplication.h:136: error: `QWidget' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:340: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qapplication.h:341: warning: type defaults to `int'
in declaration of `QWidget'
/usr/lib/qt-3.1/include/qapplication.h:341: error: storage class specified
for parameter `QWidget'
/usr/lib/qt-3.1/include/qapplication.h:341: error: redeclaration of
`QWidget'
/usr/lib/qt-3.1/include/qapplication.h:340: error: `QWidget' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:341: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qapplication.h:342: warning: type defaults to `int'
in declaration of `QWidget'
/usr/lib/qt-3.1/include/qapplication.h:342: error: storage class specified
for parameter `QWidget'
/usr/lib/qt-3.1/include/qapplication.h:342: error: redeclaration of
`QWidget'
/usr/lib/qt-3.1/include/qapplication.h:341: error: `QWidget' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:342: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qapplication.h:343: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:343: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qapplication.h:343: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:338: error: `bool' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:343: error: syntax error before
"obey_desktop_settings"
/usr/lib/qt-3.1/include/qapplication.h:344: error: storage class specified
for parameter `cursor_flash_time'
/usr/lib/qt-3.1/include/qapplication.h:345: error: storage class specified
for parameter `mouse_double_click_time'
/usr/lib/qt-3.1/include/qapplication.h:346: error: storage class specified
for parameter `wheel_scroll_lines'
/usr/lib/qt-3.1/include/qapplication.h:348: warning: type defaults to `int'
in declaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:348: error: storage class specified
for parameter `bool'
/usr/lib/qt-3.1/include/qapplication.h:348: error: redeclaration of `bool'
/usr/lib/qt-3.1/include/qapplication.h:343: error: `bool' previously
declared here
/usr/lib/qt-3.1/include/qapplication.h:348: error: syntax error before
"animate_ui"
/usr/lib/qt-3.1/include/qapplication.h:349: warning: type defaults to `int'
in declaration of `bool'
`focusOutEvent'
/usr/lib/qt-3.1/include/qbutton.h:136: error: `focusOutEvent' previously
declared here
/usr/lib/qt-3.1/include/qpushbutton.h:112: error: syntax error before '*'
token
/usr/lib/qt-3.1/include/qpushbutton.h:115: error: syntax error before
"private"
hello.c:6: warning: `main' is usually a function
hello.c:6: error: syntax error before '{' token
hello.c:15:2: warning: no newline at end of file
make: *** [hello.o] Error 1



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.