Avoid the identifiers near and far , which are reserved words in most Windows compilers.
Common replacements are nnear and ffar .
At the very least, check with your Windows environment before using functions or constants from unistd . Single-precision versions of trigonometric functions such as sinf and cosf while desirable for performance may not be available on all platforms. A more in-depth list of portability considerations is available in the file Portability.txt in the GLUT 3.6 distribution. GLUT is described in more detail in Section 19 .