While attempting to construct the MSS library from the
CVS files using the Borland command line compiler
(BCC32 version 5.6.4), I encountered the following error:
Error E2453 ..\..\..\..\libmss\check.c 342: Size of the
type 'void' is unknown or zero in function
mss_check_pointer_validity
From the Borland Help file, the explanation of E2453 is:
"This type was used in a context where its size was needed.
For example, a struct tag might only be declared (the
struct not defined yet).
It's illegal then to have some references to such an
item (like sizeof) or to dereference a pointer to this
type.
Rearrange your declarations so that the size of this
type is available."
The check.c line number referenced, 342, is the end of
the function. No further explanation is given.
Logged In: YES
user_id=250965
After some revisions of check.c, the message now reads:
Error E2453 ..\..\..\..\libmss\check.c 348: Size of the type
'void' is unknown or zero in function mss_check_pointer_validity
Perhaps the offending line is
(unsigned long)(ptr - node->ptr));
I think the Borland compiler is complaining about doing
arithmetic with the void pointer, ptr. Can ptr be changed
to a non-void type?