This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

glGetString ?


Hi All,

I updated my Cygwin with the 'slick' new GUI interface

Nice ;-)

and everything seems OK 

except that the linker choked on glGetString from libopengl32.a 

But it is there

%> nm libopengl32.a | grep "glGetString"
00000000 I __imp__glGetString@4
00000000 T _glGetString@4

The following test program demonstrates the problem

Norman VIne

==== cut here ====
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <GL/glut.h>

void getPrints ( GLenum token, char *string )
{
  printf ( "%s = \"%s\"\n", string, glGetString ( token ) ) ;
}

int main ( int argc, char **argv )
{
  glutInit            ( &argc, argv ) ;
  glutInitDisplayMode ( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ) ;
  glutCreateWindow    ( "You should never see this window!"  ) ;

  getPrints ( GL_VENDOR      , "GL_VENDOR"     ) ;
  getPrints ( GL_RENDERER    , "GL_RENDERER"   ) ;
  getPrints ( GL_VERSION     , "GL_VERSION"    ) ;
  getPrints ( GL_EXTENSIONS  , "GL_EXTENSIONS" ) ;

  return 0 ;
}


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]