Error while compiling sample bonobo program...



Hi,
   I am trying to compile a sample Bonobo program. I took
the sample program from bonobo/samples/controls and tried
to compile it. But I am getting the foll error:

gcc -DHAVE_CONFIG_H -I. -I. -I..
-DGNOMELOCALEDIR=\""/opt/gnome-2.0/share/locale"\"        
-DG_LOG_DOMAIN=\"Echo\"  -I. -I../bonobo
-I. -I..                                -I..
-I/opt/gnome-2.0/include
-I/opt/gnome-2.0/include/glib-2.0
-I/opt/gnome-2.0/lib/glib-2.0/include
-I/opt/gnome-2.0/include/pango-1.0
-I/opt/gnome-2.0/include/freetype2
-I/opt/gnome-2.0/include/libxml2
-I/opt/gnome-2.0/include/libart-2.0
-I/opt/gnome-2.0/include/gtk-2.0
-I/opt/gnome-2.0/include/librsvg-2
-I/opt/gnome-2.0/include/bonobo-activation-2.0
-I/opt/gnome-2.0/include/gnome-vfs-2.0
-I/opt/gnome-2.0/lib/gnome-vfs-2.0/include
-I/opt/gnome-2.0/include/gconf/2
-I/opt/gnome-2.0/include/libbonobo-2.0
-I/opt/gnome-2.0/include/atk-1.0
-I/opt/gnome-2.0/lib/gtk-2.0/include
-I/opt/gnome-2.0/include/libgnome-2.0
-I/opt/gnome-2.0/include/libbonoboui-2.0
-I/opt/gnome-2.0/include/libgnomeui-2.0
-I/opt/gnome-2.0/include/linc-1.0
-I/opt/gnome-2.0/include/orbit-2.0
-I/opt/gnome-2.0/include/libgnomecanvas-2.0
-I/opt/gnome-2.0/include/libgnomeprint-2.0
-I/opt/gnome-2.0/include 
-g  -I/opt/gnome-2.0/include -c echo.c

echo.c: In function `echo_get_type':
echo.c:115: too few arguments to function
`bonobo_type_unique'
make: *** [echo.o] Error 1
  

Actually I am using bonobo_x_type_unique() 
in the foll. piece of code.

~~~~~~~~~~~~~
GType
echo_get_type (void)
{
    static GType type = 0;

    if (!type) {
        GTypeInfo info = {
            sizeof (EchoClass),
            (GBaseInitFunc) NULL,
            (GBaseFinalizeFunc) NULL,
            (GClassInitFunc) echo_class_init,
            NULL, NULL,
            sizeof (Echo),0,
            (GInstanceInitFunc) echo_init,
             NULL,
        };

ln:115==>   type = bonobo_x_type_unique (
            BONOBO_OBJECT_TYPE,
            POA_Bonobo_Sample_Echo__init, NULL,
            GTK_STRUCT_OFFSET (EchoClass, epv),
            &info, 1);

    }

    return type;
}

~~~~~~~~~


        Could anyone pls tell me what could be the problem. 
        

Thanks,
Ganesan.
**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]