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!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Plugins/Dynamic Libraries Date: Thu, 11 Nov 2004 09:28:07 +0100 Organization: None Message-ID: <1620578.6MPXyIRIlq@linux1.krischik.com> References: <419313b1$0$31235$9a6e19ea@news.newshosting.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1100161916 04 18892 IgdyXGDvBqGLSvZE 041111 08:31:56 X-Complaints-To: usenet-abuse@t-online.de X-ID: GFs-02Zv8eTmHOGiuxh-3UgVmphDmBM3100Pzx7mr8iR7Yc6Nw9dgf User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:6138 Date: 2004-11-11T09:28:07+01:00 List-Id: Andrew W wrote: > Greetings All, > > I am starting work on a plug in / dynamic library project with ADA and > just > wanted to see if I had missed anything. I understand that this is very > compiler and OS dependent. > > Under Linux the accepted method is using the DLibs bindings to dlopen etc > http://www.cyberdanx.co.uk/ada95/dlibs.html > > Under Windows the accepted method is using COM > http://www.gnavi.org/gnatcom/ > > I found a post from last year which mentions: "there is a AdaPlugin > project for Linux that use Dynamic Glib Module functionnality" but did not > provide any more information - I have been unable to find such a project. > > I would most obliged if anybody has pointers to any other ada dynamic > library implimentations (especially under Linux/Unix). 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 ....; 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. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com