comp.lang.ada
 help / color / mirror / Atom feed
* linking C library functions in Ada DOS .EXE
@ 1996-04-29  0:00 ricardo
  1996-04-29  0:00 ` Jerry van Dijk
  1996-04-29  0:00 ` Samuel Tardieu
  0 siblings, 2 replies; 5+ messages in thread
From: ricardo @ 1996-04-29  0:00 UTC (permalink / raw)



        Hello, I'm writing a program that accesses to Video RAM in PC,
and I have a problem when linking some C routines with the Ada main
program. The problem is that to get access to PC I/O ports and BIOS
functions I have written three functions in C which I use as gateways
between Ada and system level. Both of C and Ada programs compile right,
but when I run gnatbind I get a message that states that int86, inportw
and outportw functions are not found. My question is:

How can I tell gnatbind (or gcc, I'm not sure which of both) to include
    the C library functions when calling C?

The GNAT version I'm using is 2.06 for DOS. Thanks in advance.

                                                Ricardo Palomares.




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

end of thread, other threads:[~1996-05-02  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-29  0:00 linking C library functions in Ada DOS .EXE ricardo
1996-04-29  0:00 ` Jerry van Dijk
1996-05-01  0:00   ` Michael Feldman
1996-05-02  0:00     ` Jerry van Dijk
1996-04-29  0:00 ` Samuel Tardieu

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