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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,56a94442d514b905 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news.cambrium.nl!skynet.be!skynet.be!newspost001!tjb!not-for-mail Date: Thu, 11 Nov 2004 11:49:17 +0100 From: Adrien Plisson Reply-To: aplisson-news@stochastique.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Plugins/Dynamic Libraries References: <419313b1$0$31235$9a6e19ea@news.newshosting.com> <1620578.6MPXyIRIlq@linux1.krischik.com> In-Reply-To: <1620578.6MPXyIRIlq@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <41934335$0$9740$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 9b751c96.news.skynet.be X-Trace: 1100170037 news.skynet.be 9740 80.201.130.101:14379 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:6140 Date: 2004-11-11T11:49:17+01:00 List-Id: Martin Krischik wrote: > A current version of GNAT and GPS can do DLLs out of the box. Just Add the > > for Library_Dir use ...; > for Library_Name use ...; > for Library_Kind use ...; > for Library_Version use ....; these are static bindings done at compile time. the resulting executable contains a segment which tells the system to load the given library and relocate symbols in the process space. but if the library is not present at application startup, the application does not start: the system is responsible for loading and checking the dll. (at least it works this way under windows). Andrew was talking about dynamic bindings at runtime. that is calling a function which loads the dll, whose name is contained in a variable. if at application startup the library does not exists, it is not a problem: the programmer is responsible for loading and checking the dll. > to your project file and all needed steps will be done for you. Why there is > no checkbox in GPS I don't know. For Windows you need the "experimental" > MinGW GNAT based on GCC 3.4.2. Older GNAT's can do Linux DLLs only. it seems GNAT 3.15p for windows is doing DLLs (according to the doc, i had no time to test it). -- rien