comp.lang.ada
 help / color / mirror / Atom feed
From: geert@gonzo.sun3.iaf.nl (Geert Bosch)
Subject: Re: Help! --Interfacing GNAT 3.05 to C libraries
Date: 1997/05/08
Date: 1997-05-08T00:00:00+00:00	[thread overview]
Message-ID: <5ktc0d$q5c$1@gonzo.sun3.iaf.nl> (raw)
In-Reply-To: u2wwpaxc4o.fsf@hola.gsyc.inf.uc3m.es


Jesus M. Gonzalez (jgb@gsyc.inf.uc3m.es) wrote:
`` For instance, if you want to compile your ada-program.adb which
   make a call to Foo, which can be found in libFoo.a library, you
   can just type:

   	gnatmake ada-program --largs -lFoo ''


Actually I'd recommend using 
   pragma Linker_Options ("-lFoo");

in the package using the function. This way you don't need to
think about all required linker options when using some packages
in your program. In this case, when "ada-program" uses some package, which
imports function foo defined in library foo, you only have to
type the command:
   
   gnatmake ada-program

and your program will be build and the library will be linked in.
It can't get much easier. (Try this when using C only.)

Regards,
   Geert




  reply	other threads:[~1997-05-08  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-08  0:00 Help! --Interfacing GNAT 3.05 to C libraries Manuel A. Fernandez Fernandez
1997-05-08  0:00 ` billimad
1997-05-08  0:00 ` Jesus M. Gonzalez
1997-05-08  0:00   ` Geert Bosch [this message]
1997-05-09  0:00     ` Stephen Leake
1997-05-10  0:00       ` Geert Bosch
replies disabled

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