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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,518edfc14db5e800 X-Google-Attributes: gid103376,public From: Samuel Tardieu Subject: Re: linking C library functions in Ada DOS .EXE Date: 1996/04/29 Message-ID: #1/1 X-Deja-AN: 152085014 sender: tardieu@gargantua.enst.fr references: <1996Apr29.154124@eucmax> to: ricardo@eucmax.sim.ucm.es content-type: text/plain; charset=iso-8859-1 organization: TELECOM Paris mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-04-29T00:00:00+00:00 List-Id: >>>>> "Ricardo" == ricardo writes: Ricardo> How can I tell gnatbind (or gcc, I'm not sure which of both) Ricardo> to include the C library functions when calling C? This is quite simple: in the package which defines the interface with the C functions, just add a: pragma Linker_Options ("-lmylib"); and this should do the job. Ricardo> The GNAT version I'm using is 2.06 for DOS. Thanks in Ricardo> advance. You may want to get a newer release by anonymous FTP. I don't know if there is a mirror in Spain, but you can get it from France (ftp://ftp.ibp.fr/pub/gnat/). Sam -- "La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette" Charles Baudelaire