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,97cf8dc45eee6abf X-Google-Attributes: gid103376,public From: geert@gonzo.sun3.iaf.nl (Geert Bosch) Subject: Re: Help! --Interfacing GNAT 3.05 to C libraries Date: 1997/05/08 Message-ID: <5ktc0d$q5c$1@gonzo.sun3.iaf.nl>#1/1 X-Deja-AN: 240444028 References: <33719153.6BCC@laurel.datsi.fi.upm.es> Organization: La Calandre Infortunee Newsgroups: comp.lang.ada Date: 1997-05-08T00:00:00+00:00 List-Id: 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