I'm trying to compile someone else's project, and I'm getting about 850 errors all related to OpenGL. I'm using Visual Studio 2008, on 64-bit Windows 7, but the project is a Win32 project.
As you can see, the errors below are from gl.h
in the Windows SDK include folder under Program Files
, not Program Files (x86)
so I'm guessing that's part of the problem. I've tried adding the .NET 2003 include directory which has gl.h and is under Program Files (x86)
, but it's still trying to use the version of gl.h under Program Files
.
Also, the project uses wxWidgets 2.4.2 and I can't find any instance of gl.h
being included in the solution itself, so I'm not sure what's pulling it in.
Update: Still unable to compile this. The actual project I'm trying to compile is the "Interactive Digital Photomontage" tool (source code at the link). They include a VS2003 project file and instructions, which I followed carefully. I even tried building in VS2003 and got the same errors. I'm curious if anyone has a moment to try this on their system and see if they get the same errors. Requires wxWidgets 2.4.2 to be installed.
Any thoughts? I've included a sample of some of the errors below. Thanks.
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';'
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\GL/gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition
you need to include "windows.h" before "gl.h"
#include "windows.h"
#include "gl.h"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With