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,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!f47g2000hsd.googlegroups.com!not-for-mail From: "marcelo.batera@gmail.com" Newsgroups: comp.lang.ada Subject: Re: GNAT Project Manager and DLLs Date: Tue, 19 Feb 2008 14:59:46 -0800 (PST) Organization: http://groups.google.com Message-ID: <4b75fe65-d168-4880-9d51-2ee095faa023@f47g2000hsd.googlegroups.com> References: NNTP-Posting-Host: 201.81.97.217 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1203461987 10220 127.0.0.1 (19 Feb 2008 22:59:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Feb 2008 22:59:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f47g2000hsd.googlegroups.com; posting-host=201.81.97.217; posting-account=NclPyQoAAAAE3vS1fHd_8NOSumP9W3Ey User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20071203 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19899 Date: 2008-02-19T14:59:46-08:00 List-Id: On 19 fev, 19:16, Simon Wright wrote: > The only differences I can see between a library of mine that does > create init/final symbols and yours (which don't here, Mac OS X/GNAT > GPL 2007) are that I have specified Library_Interface and > Library_Src_Dir. Doesn't seem enough. > > After a bit of cross-platform hacking your 'make run' says > > cd pluginlib && ../bin/plug_sample > > Using the locator to load the plugin... > Name => sampleplug > > raised AW_PLUG.LOCATORS.PLUGIN_NOT_FOUND : sampleplug > > which I take it is the problem! it's yet another problem. as I stated earlier, the problem was not creating a stand-alone library (which I solved using the Library_Interface option in the sample's project file). 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). The thing is: it's looking for a file named libsampleplug.so. Your shared library might be called something else. 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). btw: I know some Makefiles aren't cross platform, but they can be easily changed and I intend use scons somewhere in the near future for the entire project.