Re: XForms: c++ intergration probs ...

Jacques Tremblay (jackt@gel.ulaval.ca)
Wed, 30 Jul 1997 11:23:44 -0400 (EDT)

To subscribers of the xforms list from Jacques Tremblay <jackt@gel.ulaval.ca> :

Hi,

> 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

You must have a pretty big object to get that kind of message or you are
using an old compiler. What compiler are you using ?

> 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 *'
>

This looks like a previous syntax error that confuses the compiler.
It doesn't seem to be aware of the class CDInterface when it is on line
13 of your cpp dfile. Did you put the ; at the end of the class
declaration?

> 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;
> }
>

Good luck.

JT

-- 
***************************************************************************
* Jacques Tremblay       *  jackt@gel.ulaval.ca                           *
* Dept. Genie Electrique *                                                *
* Universite Laval       *                                                *
* Quebec                 *                                                *
***************************************************************************
_________________________________________________
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/