XForms: c++ intergration probs ...

Matthew Flax (flatmax@cse.unsw.EDU.AU)
Wed, 30 Jul 1997 02:06:44 +1000 (EST)

To subscribers of the xforms list from Matthew Flax <flatmax@cse.unsw.EDU.AU> :

I was working through the example by
Jacques Tremblay <jackt@gel.ulaval.ca>
for C++ intergration.

I have virtually inscripted what was there before, however with my own
form. But I get the following error messages which are really odd :

CDInterface.cpp:13: sorry, not implemented: object size exceeds normal
limit for virtual function table implementation, recompile all source and
use -fhuge-objects
CDInterface.cpp:13: sorry, not implemented: object size exceeds normal
limit for virtual function table implementation, recompile all source and
use -fhuge-objects
CDInterface.cpp:13: parse error before `*'
CDInterface.cpp: In function `static int * CDInterface::GetThis(struct
flobjs_ *)':
CDInterface.cpp:14: new declaration `static int *
CDInterface::GetThis(struct flobjs_ *)'
CDInterface.h:9: ambiguates old declaration `static class CDInterface *
CDInterface::GetThis(struct flobjs_ *)'
CDInterface.cpp: In function `static int * CDInterface::GetThis(struct
flobjs_ *)':
CDInterface.cpp:15: return to `int *' from `CDInterface *'

Now : I can get rid of the first few by compiling with -fhuge-objects
but the others strange.

The header code in reference is (starting on line 9):

static CDInterface *GetThis(FL_OBJECT * obj);

The c++ code in reference is (starting on line 13):

CDInterface * CDInterface::
GetThis(FL_OBJECT * obj){
return (CDInterface *) obj->form->u_vdata;
}

thanks
Matt

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/