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   | 
		 
		
			
				
				
				  | 
					
						  
						koldo
						 Messages: 3453 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
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 08:47:30 CET 2025 
 Total time taken to generate the page: 0.07326 seconds 
 |