Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » GLCtrl compiling problems
GLCtrl compiling problems [message #45144] Wed, 16 September 2015 13:22 Go to previous message
koldo is currently offline  koldo
Messages: 3377
Registered: August 2008
Senior Veteran
MinGW compiler complains in Win32GLCtrl.cpp in this line:

ctrl->doubleBuffering ? SwapBuffers(hDC) : glFlush();

Quote:
error: third operand to the conditional operator is of type 'void', but the second operand is neither a throw-expression nor of type 'void'


if (ctrl->doubleBuffering) 
  SwapBuffers(hDC);
else 
  glFlush();

solves the problem.

In addition, in GLCtrl Package organizer, in rule:

When WIN32 GCC Libraries glaux glu32 opengl32

glaux would have to be removed.

Both fixes work in 32 and 64 bits.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved] CtrlLib: PromptSaveDontSaveCancel
Next Topic: OpenGL 3+ support
Goto Forum:
  


Current Time: Wed Jul 24 08:23:09 CEST 2024

Total time taken to generate the page: 0.01628 seconds