On Nov 01, Zdenek Kabelac wrote:
> On Thu, Nov 01, 2001 at 06:33:51PM +0200, Erdnc� �cecnd�� wrote:
> > I USE Slackware 8.0 and try to compile CVS version of
> > avifile-0.6 ... I have this error :
> >
> > MyWidget::send_key_event(int, int = 0, int = 0)':
> > mywidget.cpp:72: parse error before `2'
> > mywidget.cpp: In method `bool MyWidget::event(QEvent *)':
> > mywidget.cpp:100: parse error before `2'
>
> This is the second post of this kind - so there is probably
> something - but without access to such machine I'm so far
> unable to guess the reason for this problem
>
> What are the versions of your: Qt, gcc,
> Are you sure you do not have any Qt header files floating around ?
I think it has something to do with SDL, look what happens
when I take SDL out and put it back in (with custom makefiles)
--Mat
bash-2.03$ gmake
g++ -Os -pipe -I../include -I/usr/X11R6/include -I/usr/X11R6/include/qt2
-I/usr/local/include/SDL11 -DSHARE_PATH=\"/usr/local/share/avifile0.6\"
-DWIN32_PATH=\"/usr/lib/win32\" -DQT_THREAD_SUPPORT -c -o mywidget.o mywidget.cpp
mywidget.cpp: In method `void MyWidget::send_key_event(int, int = 0, int = 0)':
mywidget.cpp:72: syntax error before `2'
mywidget.cpp:72: declaration of `qtkey' shadows a parameter
mywidget.cpp:72: no matching function for call to `QEvent::QEvent ()'
/usr/X11R6/include/qt2/qevent.h:117: candidates are: QEvent::QEvent(QEvent::Type)
/usr/X11R6/include/qt2/qevent.h:130: QEvent::QEvent(const QEvent &)
mywidget.cpp:72: declaration of `qtascii' shadows a parameter
mywidget.cpp:72: no matching function for call to `QEvent::QEvent ()'
/usr/X11R6/include/qt2/qevent.h:117: candidates are: QEvent::QEvent(QEvent::Type)
/usr/X11R6/include/qt2/qevent.h:130: QEvent::QEvent(const QEvent &)
mywidget.cpp:72: syntax error before `)'
mywidget.cpp: In method `bool MyWidget::event(QEvent *)':
mywidget.cpp:100: syntax error before `2'
gmake: *** [mywidget.o] Error 1
bash-2.03$ CFLAGS=-DUSE_SDL gmake
g++ -DUSE_SDL -Os -pipe -I../include -I/usr/X11R6/include -I/usr/X11R6/include/qt2
-I/usr/local/include/SDL11 -DSHARE_PATH=\"/usr/local/share/avifile0.6\"
-DWIN32_PATH=\"/usr/lib/win32\" -DQT_THREAD_SUPPORT -c -o mywidget.o mywidget.cpp
/usr/X11R6/bin/moc2 < decoder_config.h > decoder_config.moc
g++ -DUSE_SDL -Os -pipe -I../include -I/usr/X11R6/include -I/usr/X11R6/include/qt2
-I/usr/local/include/SDL11 -DSHARE_PATH=\"/usr/local/share/avifile0.6\"
-DWIN32_PATH=\"/usr/lib/win32\" -DQT_THREAD_SUPPORT -c -o decoder_config.o
decoder_config.cpp
_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile