comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Strange behavior of OpenGLUT
Date: Wed, 27 Feb 2013 10:15:52 +0100
Date: 2013-02-27T10:15:52+01:00	[thread overview]
Message-ID: <512dcf0d$0$17990$703f8584@textnews.kpn.nl> (raw)

I am using Open GL in one of my programs therefore I do include the Open GL 
library, the open GLU library and the Open Glut library
with the following calls:

with OpenGL; use OpenGL;
with OpenGL.GLU; use OpenGL.GLU;
with OpenGL.GLUT; use OpenGL.GLUT;

I show the strange behavior by the next code:

procedure display is -- chanced: GLvoid display( GLvoid );
begin
    glClear( GL_COLOR_BUFFER_BIT ); --correctly compiled
    ShowAxis;
    Wall;
    drawTriangles;
   glFlush;                                              --correctly 
compiled
   glutSwapBuffers;                               --NOT correctly compiled
end display;

then I get the following error message:

undefined reference to 'glutSwapBuffers'

while in the OpenGL.Glut package the following is presented:

   procedure glutSwapBuffers;

All calls to OpenGL.Glut subprograms in the file are found to have the same 
error but every variable from this file is correctly compiled
All calls op OpenGL subprograms are also correctly compiled.

I am using the OpenGL-glut.ads  by David Holm 2002-2003

What do I have to do to get this correctly compiled using GNAT GPS 2012

L. Dries








             reply	other threads:[~2013-02-27  9:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27  9:15 ldries46 [this message]
2013-02-27  9:36 ` Strange behavior of OpenGLUT Egil Høvik
2013-02-27 10:45   ` ldries46
2013-02-27 10:50     ` Simon Wright
2013-02-27 11:00       ` ldries46
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox