Home > Wingdiapi Error > Wingdiapi Error

Wingdiapi Error

Advisor professor asks for my dissertation research source-code What would be the value of gold and jewelry in a post-apocalyptic society? Note: C++ does not support default-int 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1160): error C2086: 'int WINGDIAPI' : redefinition 1> c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1160): error C2146: syntax error Note: C++ does not support default-int 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152): error C2146: syntax error : missing ';' before identifier 'glAccum' 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152): error C2182: 'APIENTRY' : illegal use of type 'void' Note: C++ does not support default-int 1>c:\msvc++\mspsdk\include\gl\gl.h(1153) : error C2086: 'int WINGDIAPI' : redefinition 1> c:\msvc++\mspsdk\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' 1>c:\msvc++\mspsdk\include\gl\gl.h(1153) : error C2146: syntax error : missing ';' before

share|improve this answer answered Oct 1 '14 at 3:58 Clemens 212 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. How to report trailhead bugs Is there an illusion in the tutorial area? calls to external dlls) is OS dependent.Basically, gl.h on windows needs windows.h. https://www.opengl.org/discussion_boards/showthread.php/123255-WINGDIAPI-variable-compilation-error

Ensure that WIN32 is defined if you do not want to change the SOIL library. When I added a resistor to a set of christmas lights where I cut off bulbs, it gets hot. Thanks. –SSilk Jun 3 '11 at 14:59 Also, searching for similar issues, I noticed a lot of answers are that someone's trying to compile C code as a C++.

share|improve this answer answered Jan 10 '09 at 5:50 Rob Kennedy 130k13191356 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google If you're doing this.. #include #include You'll still get those errors, becase gl.h uses stuff defined in windows.h, so windows.h needs to come first. Deiussum Software Engineer and OpenGL enthusiast 06-03-2002,07:35 AM #6 rpxmaster View Profile View Forum Posts Private Message Junior Member Regular Contributor Join Date May 2001 Location Omaha, NE US Posts 119 Now what? –The Light Spark Aug 19 '14 at 16:49 Okay, got it.

Note: C++ does not support default-int 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1163): error C2086: 'int WINGDIAPI' : redefinition 1> c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1163): error C2146: syntax error Is OpenGL C or C++? Just putting it here, so that anyone else who encounters the error will find a cleaner question and answer than to have to go dig through the website where I got http://stackoverflow.com/questions/13161391/expected-to-follow-wingdiapi GLUT, GLFW, GLM) OpenGL drivers High-level APIs (e.g.

I've included a sample of some of the errors below. So what is the solution? Thanks for any help you can give! In addition, using the SDL OpenGL-related commands works just fine.

asked 5 years ago viewed 7698 times active 5 years ago Blog Stack Overflow Podcast #93 - A Very Spolsky Halloween Special Linked -1 Linking openGL,GLU and GLUT libraries to VisualC++ internet Note: C++ does not support default-int 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1158): error C2086: 'int WINGDIAPI' : redefinition 1> c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1158): error C2146: syntax error For what it's worth, popular sound library uses this before including windows.h: #if defined(_WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) #include #endif share|improve this answer answered Jan 2 '14 at Note: C++ does not support default-int1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1155) : error C2144: syntax error : 'void' should be preceded by ';'1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\gl\gl.h(1155) : error C4430: missing type

Where will the second Fantastic Beasts film be set? Back to top Back to General Programming Old topic! The actual project I'm trying to compile is the "Interactive Digital Photomontage" tool (source code at the link). 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.

  • Not the answer you're looking for?
  • The project uses wxWidgets to create its GUI, so I'm guessing maybe the entry point is in some wx header.
  • You cannot reply to this topic 4 replies to this topic #1 Californium Banned -Reputation: 100 Like Likes Like Posted 15 December 2002 - 12:14 PM I get many errors

Hi! Also, make sure you include your ANSI headers before you include windoze.h. Are there textual deviations between the Dead Sea Scrolls and the Old Testament? Note: C++ does not support default-int 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1168): error C2086: 'int WINGDIAPI' : redefinition 1> c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1168): error C2146: syntax error

Can you reproduce the problem in a simple project? Probability of throwing a die How much more than my mortgage should I charge for rent? more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science

I downloaded this gl.h from the opengl.org website some time ago.

Why are spare wheels smaller than normal wheels? What's this I hear about First Edition Unix being restored? I tried changing the compiler from one that accepts Borland Extensions to the ANSI standard. Note: C++ does not support default-int - Prev solutions not working-1Compile error from gl.h Hot Network Questions Interlace strings Trick or Treat polyglot Output Drift of an operational Integrator Is there

Jay Page 1 of 2 12 Last Jump to page: Quick Navigation OpenGL coding: beginners Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums ANNOUNCEMENT & that works, but now when it executes and loads the window, i get an error from sdl saying it could not create GL context. visual-studio opengl sdl share|improve this question edited Aug 19 '14 at 16:46 Peter O. 16.2k74863 asked Aug 19 '14 at 16:33 The Light Spark 325213 add a comment| 1 Answer 1 I included 'openGL32.lib' in my linker input, have a #include to the "GL\gl.h" header, but I get a compilation error, and the errors seem to be in the gl.h I included.

Note: C++ does not support default-int 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1166): error C2086: 'int WINGDIAPI' : redefinition 1> c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1152) : see declaration of 'WINGDIAPI' 1>c:\program files\microsoft sdks\windows\v7.1a\include\gl\gl.h(1166): error C2146: syntax error C++11 - typeid uniqueness Probability of throwing a die Oracle flashback query syntax - all tables to same timestamp Is there a reason why housekeeping wouldn't accept a tip? What's in Naboo's core, liquid water or plasma?

Follow us