I'm trying to do some basic pointer arithmetic with a void *. My actual code computes an offset by using sizeof and then multiplying. Here is sample code to show an instance of the issue by itself.
void * p;
p = 0;
p = p + 1;
I'm using the MSVC compiler in C (not C++).
The error is:
expression must be a pointer to a complete object type
I'm not understanding what this error is trying to say. There is no object or struct here.