From: "Jason Partyka" <[EMAIL PROTECTED]>
Subject: weird C error with builtin macro
> I'm trying to compile an application with the offsetof macro,
> and the compiler complains with a link error saying:
> Link Error : program.c 'offsetof' referenced from
> 'NewFormHandleEvent' is undefined.
That error isn't weird; it means exactly what it says: 'offsetof' is not
defined. You can define one yourself:
#define OffsetOf(type, member) ((UInt32) &(((type *) 0)->member))
(The above macro compliments of Aaron Ardiri.)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/