comp.lang.ada
 help / color / mirror / Atom feed
* HELP: OpenGL-Init -Error
@ 1999-11-24  0:00 andi
  1999-11-25  0:00 ` Niklas Holsti
  0 siblings, 1 reply; 2+ messages in thread
From: andi @ 1999-11-24  0:00 UTC (permalink / raw)


I would compile an OpenGL-Application with the win32ada-binding (came
with gnat3.12).
But I become an error-message:
'non-visible declaration of FUNCTIONNAME' , where FUNCTIONNAME are:
wglCreateContext, wglMakeCurrent,...and so on
What can I do when I will use this and more of this functions ???
Or is there any sample ???

andi





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HELP: OpenGL-Init -Error
  1999-11-24  0:00 HELP: OpenGL-Init -Error andi
@ 1999-11-25  0:00 ` Niklas Holsti
  0 siblings, 0 replies; 2+ messages in thread
From: Niklas Holsti @ 1999-11-25  0:00 UTC (permalink / raw)


andi wrote:
> 
> I would compile an OpenGL-Application with the win32ada-binding (came
> with gnat3.12).
> But I become an error-message:
> 'non-visible declaration of FUNCTIONNAME' , where FUNCTIONNAME are:
> wglCreateContext, wglMakeCurrent,...and so on
> What can I do when I will use this and more of this functions ???
> Or is there any sample ???
> 
> andi

Qualify the subprogram name with the package name, in the form
Your_OGL_Package.wglCreateContext, where you should replace the
part "Your_OGL_Package" with the name of the package that declares
the wglCreateContext subprogram (this package name probably appears
in the error message you get, and it probably appears in a "with"
clause at the start of your code, too).

Alternatively, add the clause "use Your_OGL_Package;" after the
"with" clause.

Hope this helps,
- Niklas




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-11-25  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-24  0:00 HELP: OpenGL-Init -Error andi
1999-11-25  0:00 ` Niklas Holsti

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