U++ framework
Do not panic. Ask here before giving up.

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: 3460
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: Sun Jun 14 18:04:13 GMT+2 2026

Total time taken to generate the page: 0.00635 seconds