I am getting a parameter name omitted error with this code
#include <GL3/gl3w.h>
void f(int near, int far) {
}
int main() {
return 0;
}
From this question I suspected gl3w included WinDef.h but I am not able to find it included in the sources. What is the source of this problem and how can it be corrected?
near and far were used to indicate types of pointers, and are likely to be defined as
Which leaves you with
Which is an invalid function definition in C. (arguments must have a name). either undefine them (
#undef) or change the argument names. Note that this is not a problem in function declaration (i.e.void foo(int, int);– as in header files) only in function definitions.Specifically, gl3w.h contains gl3.h which contains windows.h