From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,518edfc14db5e800,start X-Google-Attributes: gid103376,public From: ricardo@eucmax.sim.ucm.es Subject: linking C library functions in Ada DOS .EXE Date: 1996/04/29 Message-ID: <1996Apr29.154124@eucmax>#1/1 X-Deja-AN: 152044564 organization: Universidad Complutense de Madrid newsgroups: comp.lang.ada Date: 1996-04-29T00:00:00+00:00 List-Id: 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.