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 next message
koldo is currently offline  koldo
Messages: 3268
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
Re: GLCtrl compiling problems [message #45146 is a reply to message #45144] Wed, 16 September 2015 16:52 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Koldo, I'd like to propose the patch for GLCtrl class. Can you please review it?
http://www.ultimatepp.org/forums/index.php?t=msg&th=9396 &start=0&
Re: GLCtrl compiling problems [message #45153 is a reply to message #45146] Thu, 17 September 2015 07:50 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Mindtraveller wrote on Wed, 16 September 2015 16:52
Koldo, I'd like to propose the patch for GLCtrl class. Can you please review it?
http://www.ultimatepp.org/forums/index.php?t=msg&th=9396 &start=0&
Sorry Midtraveller. I do not maintain GLCtrl and I do not have almost any idea of OpenGL Confused (although I want to use it a lot), so I am not the right person to opine.


Best regards
Iñaki
Re: GLCtrl compiling problems [message #45319 is a reply to message #45153] Thu, 29 October 2015 18:57 Go to previous message
mirek is currently offline  mirek
Messages: 13428
Registered: November 2005
Ultimate Member
Fixed. Thank you.
Previous Topic: [solved] CtrlLib: PromptSaveDontSaveCancel
Next Topic: OpenGL 3+ support
Goto Forum:
  


Current Time: Sun Sep 26 23:24:07 CEST 2021

Total time taken to generate the page: 0.01218 seconds