We are attempting to declare a variable of type off_t to pass into our lseek function as described in the man pages, however we keep running into this error on compile:
error: a label can only be part of a statement and a declaration is not a statement
We have included types.h which gives us access to the typedef for off_t, and we really aren’t sure why it’s being treated this way, especially considering we were using ssize_t just fine and that was also defined in types.h.
Any ideas? We missing something? I mean, we are, definitely.