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!news3.google.com!postnews.google.com!d4g2000prg.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 12:28:01 -0800 (PST) Organization: http://groups.google.com Message-ID: 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 1203452882 22933 127.0.0.1 (19 Feb 2008 20:28:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Feb 2008 20:28:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d4g2000prg.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:19896 Date: 2008-02-19T12:28:01-08:00 List-Id: On 19 fev, 12:02, "marcelo.bat...@gmail.com" wrote: > Hello there, > > I'm trying to generate some dll's (.so files as I'm in linux) > using gpr files but I'm stuck. > > The gpr file is at: > > http://www.adaworks.net/adaworks/browser/trunk/awplug-samples/awplug-... > > The problem is that it does not create a "samplepluginit" symbol > as I expected: > > ogro@leibnis ~/dev/adaworks/trunk/awplug-samples $ nm pluginlib/ > libsampleplug.so > 000006dc r C.10.864 > 00002018 d DW.ref.__gnat_eh_personality > 00001ee8 a _DYNAMIC > 00001ff4 a _GLOBAL_OFFSET_TABLE_ > w _Jv_RegisterClasses > 0000201c A __bss_start > w __cxa_finalize@@GLIBC_2.1.3 > 0000200c d __dso_handle > w __gmon_start__ > U __gnat_eh_personality > 00000625 t __i686.get_pc_thunk.bx > 0000201c A _edata > 00002020 A _end > 000006b4 T _fini > 00000500 T _init > U plug_interface__register > 00002014 D sampleplug_E > 00000640 T sampleplug___elabb > 00000630 T sampleplug__void > > If I compile and bind it manually the library is successfully > built as expected. > > Is it possible to create a complete dll using gnat project > manager? > > I don't know how to elaborate more on this issue but the source > files for the entire project are available at svn://adaworks.net/adaworks/trunk > . > > For building this example I'm trying to run, just > cd trunk/awplug-samples && make run > The manually built version can be executed by > cd trunk/awplug-samples && make mrun > > For those who don't know yet, AdaWorks is a project for creating a > complete framework for building business applications in Ada. It's > still in it's early stages of development - that's why we haven't made > the official announcement on this list yet. > > Regards got it all I had to do is generate a Stand-alone Library. http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Stand_002dalone-Library-Projects.html#Stand_002dalone-Library-Projects