1

I have a VS solution with 20+ GL Studio projects in it. I recently upgraded these project from GL Studio 3.2 to version 4.4. All of the projects build except three of them. These three projects give a ton of compiler errors in gl.h when I try to build. I know from other SO questions (e.g., VC++ compile errors when including gl.h) that windows.h must be included before gl.h but since GL Studio automatically generates the source code this should already be done and it is being done in the projects that build.

The interesting thing is that the other GL Studio projects in the same solution are also including gl.h and they build just fine.

What am I doing wrong?

Community
  • 1
  • 1
frogpelt
  • 151
  • 1
  • 10

1 Answers1

1

WIN32 must be defined in the Visual Studio project settings in the Preprocessor Definitions as described here by André Caron's comment.

If WIN32 is absent or undefined, windows.h will not be included and gl.h will not compile.

Community
  • 1
  • 1
frogpelt
  • 151
  • 1
  • 10