Code:
if (-1 == munmap (buffers. Start, buffers. Length))
if (-1 == munmap (buffers. Start, buffers. Length))
error:
error: request for member ‘start’ in ‘buffers *’, which is of non-class type ‘buffer ‘, which is of non-class type ‘buffers’, which is of non-class type ‘buffers’
error: request for member ‘length’ in ‘buffers’, which is of non-class type ‘buffers’
reason:
Primarily, it is a pointer, but the use of “.” when referring to its members is used as a general variable, which would result in this compilation error.
Of course there are other reasons for this compilation error,
For example, variables are defined but not defined before they are used, and so on
modified:
if (-1 == munmap (buffers)
-> start, buffers-> length))