comp.lang.ada
 help / color / mirror / Atom feed
From: ricardo@eucmax.sim.ucm.es
Subject: linking C library functions in Ada DOS .EXE
Date: 1996/04/29
Date: 1996-04-29T00:00:00+00:00	[thread overview]
Message-ID: <1996Apr29.154124@eucmax> (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.




             reply	other threads:[~1996-04-29  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-29  0:00 ricardo [this message]
1996-04-29  0:00 ` linking C library functions in Ada DOS .EXE 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
replies disabled

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