#14 ISO C++ forbids declaration of 'KikiPython' with no type

open
nobody
5
2012-09-17
2007-01-18
Anonymous
No

g++ -c -I ../SWIG -I ../../kodilib/src/handler -I ../../kodilib/src/tools -I ../../kodilib/src/types -I ../../kodilib/src/widgets -I ../../kodilib/src/windows -I ../src/base -I ../src/bots -I ../src/gui -I ../src/items -I ../src/main -I ../src/sound -I ../src/world -I /usr/X11/include/ -I /usr/include/python2.2 -I/usr/include/SDL -D_REENTRANT -o ../src/main/KikiPythonWidget.o ../src/main/KikiPythonWidget.cpp
../src/main/KikiPythonWidget.h:43: error: ISO C++ forbids declaration of 'KikiPython' with no type
../src/main/KikiPythonWidget.h:43: error: expected ';' before '*' token
../src/main/KikiPythonWidget.h:45: error: expected `;' before 'void'

$ gcc --version
gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Discussion

  • Logged In: YES
    user_id=865686
    Originator: NO

    This is not hard to fix, i will try to join the appropriate patch (and fix another issues with gcc 4.1)

     
  • Olbat
    Olbat
    2007-05-13

    Logged In: YES
    user_id=1452237
    Originator: NO

    I had the same problem, an include is missing in kiki_src/src/main/KikiPythonWidget.h.
    Here is the diff :

    $ diff -wEup kiki/src/main/KikiPythonWidget.h kiki-my/src/main/KikiPythonWidget.h
    --- kiki/src/main/KikiPythonWidget.h 2003-04-09 04:58:18.000000000 +0200
    +++ kiki-my/src/main/KikiPythonWidget.h 2007-05-13 02:45:58.000000000 +0200
    @@ -7,6 +7,7 @@
    #define __KikiPythonWidget

    #include "KikiPos.h"
    +#include "KikiPython.h"
    #include <KTextField.h>

    class KikiPythonWidget : public KTextField