[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(no subject)
From: |
Shantanoo Karandikar |
Subject: |
(no subject) |
Date: |
Wed, 26 Jun 2002 23:14:22 -0400 |
I am trying to install ddd-3.3.1 on Sun box running SunOS 5.8
I read the documentation, which mentions that a problem with
PannedGE.C is resolved.
Still I am getting the following error:
PannedGE.C:145: cannot convert `void (*)(...)' to `void (*)()' in
initialization
make[1]: *** [PannedGE.o] Error 1
make[1]: Leaving directory `/xx/home/xxxx/ddd-3.3.1/ddd'
make: *** [all-recursive] Error 1
XawInitializeWidgetSet is a pointer to a function which returns void
and can have input parameters as per the error message
void (*)(...), but the value expected there is pointer to function
which returns void and takes NO parameters as per the error message
void (*)(). Now the compiler is trying to convert void (*)(...) to
void (*)() which this compiler(gcc version 3.0.4) cannot.
Normally (...) means variable number of parameters.
Can I find the function pointed to by XawInitializeWidgetSet so as to
change its type or write a new function which will mimic functions
pointed to by XawInitializeWidgetSet but use void (*)() signature?
When I replace XawInitializeWidgetSet with 0 or NULL the code compiles
fine.
Also I had problem compiling logplayer.C, in this the custom header
(#include "name") files were included before the standard header files
(#include <name>). Once I flipped this order it compiled smoothly.
1) PannedGE.C
PannedGE.C
Original Statement:
struct _PannedGraphEditClassRec pannedGraphEditClassRec = {
{ /* core fields */
/* superclass */ portholeWidgetClass,
/* class_name */ (char *)"PannedGraphEdit",
/* widget_size */ sizeof(PannedGraphEditRec),
/* class_initialize */ XawInitializeWidgetSet,
/* class_part_initialize */ XtWidgetClassProc(0),
/* class_inited */ False,
/* initialize */ XtInitProc(0),
/* initialize_hook */ XtArgsProc(0),
/* realize */ XtInheritRealize,
/* actions */ XtActionList(0),
/* num_actions */ 0,
/* resources */ resources,
/* num_resources */ XtNumber(resources),
/* xrm_class */ NULLQUARK,
/* compress_motion */ True,
/* compress_exposure */ True,
/* compress_enterleave */ True,
/* visible_interest */ False,
/* destroy */ XtWidgetProc(0),
/* resize */ Resize,
/* expose */ XtInheritExpose,
/* set_values */ XtSetValuesFunc(0),
/* set_values_hook */ XtArgsFunc(0),
/* set_values_almost */ XtInheritSetValuesAlmost,
/* get_values_hook */ XtArgsProc(0),
/* accept_focus */ XtAcceptFocusProc(0),
/* version */ XtVersion,
/* callback_private */ XtPointer(0),
/* tm_table */ String(0),
/* query_geometry */ XtInheritQueryGeometry,
/* display_accelerator */ XtInheritDisplayAccelerator,
/* extension */ XtPointer(0)
} ,
{ /* Composite fields */
/* geometry_manager */ XtInheritGeometryManager,
/* change_managed */ XtInheritChangeManaged,
/* insert_child */ XtInheritInsertChild,
/* delete_child */ XtInheritDeleteChild,
/* extension */ XtPointer(0)
} ,
{ /* Porthole fields */
/* dummy */ 0
} ,
{ /* PannedGraphEdit fields */
/* extension */ XtPointer(0)
} ,
};
New Statement:
struct _PannedGraphEditClassRec pannedGraphEditClassRec = {
{ /* core fields */
/* superclass */ portholeWidgetClass,
/* class_name */ (char *)"PannedGraphEdit",
/* widget_size */ sizeof(PannedGraphEditRec),
/* class_initialize */ 0, /*XawInitializeWidgetSet,*/
/* class_part_initialize */ XtWidgetClassProc(0),
/* class_inited */ False,
/* initialize */ XtInitProc(0),
/* initialize_hook */ XtArgsProc(0),
/* realize */ XtInheritRealize,
/* actions */ XtActionList(0),
/* num_actions */ 0,
/* resources */ resources,
/* num_resources */ XtNumber(resources),
/* xrm_class */ NULLQUARK,
/* compress_motion */ True,
/* compress_exposure */ True,
/* compress_enterleave */ True,
/* visible_interest */ False,
/* destroy */ XtWidgetProc(0),
/* resize */ Resize,
/* expose */ XtInheritExpose,
/* set_values */ XtSetValuesFunc(0),
/* set_values_hook */ XtArgsFunc(0),
/* set_values_almost */ XtInheritSetValuesAlmost,
/* get_values_hook */ XtArgsProc(0),
/* accept_focus */ XtAcceptFocusProc(0),
/* version */ XtVersion,
/* callback_private */ XtPointer(0),
/* tm_table */ String(0),
/* query_geometry */ XtInheritQueryGeometry,
/* display_accelerator */ XtInheritDisplayAccelerator,
/* extension */ XtPointer(0)
} ,
{ /* Composite fields */
/* geometry_manager */ XtInheritGeometryManager,
/* change_managed */ XtInheritChangeManaged,
/* insert_child */ XtInheritInsertChild,
/* delete_child */ XtInheritDeleteChild,
/* extension */ XtPointer(0)
} ,
{ /* Porthole fields */
/* dummy */ 0
} ,
{ /* PannedGraphEdit fields */
/* extension */ XtPointer(0)
} ,
};
I would appreciate is any one advice/help/guide.
Thanks
Shantanoo Karandikar
(803) 935 8353
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- (no subject),
Shantanoo Karandikar <=