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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,28202776a316f7c4 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!peer1.news.newnet.co.uk!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GNAT Project Manager and DLLs Date: Wed, 20 Feb 2008 20:38:21 +0000 Organization: Pushface Message-ID: References: <4b75fe65-d168-4880-9d51-2ee095faa023@f47g2000hsd.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1203539905 15794 62.49.19.209 (20 Feb 2008 20:38:25 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 20 Feb 2008 20:38:25 +0000 (UTC) Cancel-Lock: sha1:eDXK8i0fQyCPFuVffngNXj0a72Y= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (darwin) Xref: g2news1.google.com comp.lang.ada:19921 Date: 2008-02-20T20:38:21+00:00 List-Id: "marcelo.batera@gmail.com" writes: > I haven't tested/ported it to MacOS X (I was going to do this today, > but I driven myself thinking about how to explain the use of AwPlug... > and I came up with a simple example of use and writing some sample > code - I still got to write some things... but well, that's not the > case). Are you building your own GNAT or using mine from SF GNUAda? If the latter, then a couple of points -- (a) you need for Library_Options use ("-single_module"); (b) the version I uploaded only has static libraries which will make it hard to create dynamic ones :-( I've built gnatlib-shared, but there seem to be some problems on OS X -- specifically, I have to set DYLD_LIBRARY_PATH to include the GNAT adalib directory, or I get problems building a program that references a dylib that references libgnat-2007.dylib or libgnarl-2007.dylib. I don't think that a standard link uses the dylibs -- this may be what configure --disable-libada does, of course. > The thing is: it's looking for a file named libsampleplug.so. Your > shared library might be called something else. I ended up with libsampleplug.so.0.1.0 as the executable & libsampleplug.dylib a symlink to it. This gets to the point of printing Using the locator to load the plugin... Name => sampleplug at which point it stops. > I'll work on this 'till next week and write an OS X port of awlib > (there where's the implementation for all the routines that are > system dependent). This was of course using the src-linux bodies.