Posts from the “Visual Studio Errors” Category

Solve “Access Violation” when switching to Release mode

If the program compiles perfectly in Debug mode but runs into “Access Violation” problems in Release, there are configurations in Debug mode haven’t been done in Release mode.

A simple way to deal with this: open the “.vcxproj” file with Notepad, change the configurations of Release to the same as in the Debug mode.

Solve “error C2375 – redefinition” when adding OpenGL Extensions

In the header file of the OpenGL Extension, replace #include <GL\glut.h> with the OpenGL Utility Toolkit used in current project.

For instance, if your current GLUT direction is “GL\freeglut.h”, replace #include <GL\glut.h> with #include “GL\freeglut.h”.