From: Ken Thomas <kst@ecs.soton.ac.uk>
Subject: Re: OpenGl and ADA95 by Aonix
Date: 1998/02/16
Date: 1998-02-16T00:00:00+00:00 [thread overview]
Message-ID: <34E80377.41C67EA6@ecs.soton.ac.uk> (raw)
In-Reply-To: 34E46D9D.2DE5@gsfc.nasa.gov
Stephen Leake wrote:
>
> Colson Eric wrote:
> > I've seen in the package glut.ads for Gnat that the specification for
> > GlutInit is:
> >
> > procedure glutInit (argcp : access Integer;
> > argv : access Interfaces.C.Strings.Chars_Ptr);
> > pragma Import (C, glutInit, "glutInit", "glutInit");
> >
> > With Aonix, the problem is the parameters look like not to be recognize. I
> > obtain at the moment of the execution the following message :
> > "exception raised : constraint error
> > exception message : access error"
> >
>
> This means that you are passing a null pointer. If you post the code
> that calls glutInit, maybe we can help more.
>
> --
> - Stephe
You might also check that the prototype in C is
void glutInit(int argcp*, char ***argv)
and not
int glut(...
Ada cannot ignore the result of a function call as in C.
Ken\x18
--
Dr K.S. Thomas
Department of Electronics and Computer Science
University of Southampton
Highfield
Southampton SO17 1BJ
United Kingdom
Telephone : (+44) 01703 592170
Fax : (+44) 01703 593903
email: kst@ecs.soton.ac.uk
next prev parent reply other threads:[~1998-02-16 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-13 0:00 OpenGl and ADA95 by Aonix Colson Eric
1998-02-13 0:00 ` Stephen Leake
1998-02-16 0:00 ` Ken Thomas [this message]
1998-02-16 0:00 ` Robert Dewar
1998-02-13 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox