Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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