Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Running into errors while trying to compile basic OpenGL program


  • Please log in to reply

#1
babyGrahpics

babyGrahpics

    New Member

  • Member
  • Pip
  • 1 posts
Hi Guys,
I am trying to compile a very basic OpenGL program using VisualStudio2005 on Win7 but am running into all sorts of errors pasted below. Please help get rid of the errors. Thank You for the help.

1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : error C2146: syntax error : missing ';' before identifier 'glAccum'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1153) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1153) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition
1> c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1153) : error C2146: syntax error : missing ';' before identifier 'glAlphaFunc'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1153) : error C2182: 'APIENTRY' : illegal use of type 'void'
1>c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1153) : error C2086: 'int APIENTRY' : redefinition
1> c:\program files (x86)\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1152) : see declaration of 'APIENTRY'

There are many more similar errors.
  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP