comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@inf.enst.fr>
To: ricardo@eucmax.sim.ucm.es
Subject: Re: linking C library functions in Ada DOS .EXE
Date: 1996/04/29
Date: 1996-04-29T00:00:00+00:00	[thread overview]
Message-ID: <qw63f5mswjy.fsf@gargantua.enst.fr> (raw)
In-Reply-To: 1996Apr29.154124@eucmax


>>>>> "Ricardo" == ricardo  <ricardo@eucmax.sim.ucm.es> 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




  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 linking C library functions in Ada DOS .EXE ricardo
1996-04-29  0:00 ` Samuel Tardieu [this message]
1996-04-29  0:00 ` Jerry van Dijk
1996-05-01  0:00   ` Michael Feldman
1996-05-02  0:00     ` Jerry van Dijk
replies disabled

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