Re: problems with compilation of gtkglext



On Fri, 2007-05-11 at 14:49 -0500, Moises wrote:
[snip]
> The example that I am trying to compile is
> "share-lists.c" but the visual studio marks an error
> in the line: 
> 
> glconfig = gdk_gl_config_new_by_mode (GDK_GL_MODE_RGB
> |GDK_GL_MODE_DEPTH |GDK_GL_MODE_DOUBLE);
> 
> The error is the following:
> 
> 'gdk_gl_config_new_by_mode' : parameter 1 can`t be
> turned of 'int' a 'GdkGLConfigMode'
> 
> and if the prototype of this function is:
> 
> GdkGLConfig *
> gdk_gl_config_new_by_mode(GdkGLConfigMode mode);

It looks as if you are compiling a c++ program.  If that is the case,
you need a static_cast.

Chris





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]