comp.lang.ada
 help / color / mirror / Atom feed
* argv and argc access?
@ 1998-09-28  0:00 J�rgen �hman
  1998-09-28  0:00 ` Steve Doiel
  1998-09-28  0:00 ` Frank Ecke
  0 siblings, 2 replies; 3+ messages in thread
From: J�rgen �hman @ 1998-09-28  0:00 UTC (permalink / raw)


I�m writing an opengl application using ada at my work. The application
needs to use full screen mode (not
just a maximized window).  The glut library provides a full screen mode
but to initialize glut i need to pass
the unmodified argv and argc c-parameters to the glutInit procedure.
But how can i access these in ada?
I have seen a couple of examples where they are imported:  (something
like)
  argc : aliased integer;
  pragma Import (C, argc, "gnat_argc");

but the linker doesn�t find the name ("link error: LNK2001: unsolved
external gnat_argc)
What am i supposed to do?

Thanks /J�rgen





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

end of thread, other threads:[~1998-09-28  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-28  0:00 argv and argc access? J�rgen �hman
1998-09-28  0:00 ` Steve Doiel
1998-09-28  0:00 ` Frank Ecke

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