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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b21f07444edf5baf X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news2.volia.net!hwmnpeer01.ams!hw-filter.ams!newsfe10.ams.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Gnat calls to Aonix DLL References: <1134066589.424913.74790@o13g2000cwo.googlegroups.com> In-Reply-To: <1134066589.424913.74790@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Thu, 08 Dec 2005 13:49:35 MST Organization: @WWWSpace UseNET Date: Thu, 08 Dec 2005 21:49:51 +0100 Xref: g2news1.google.com comp.lang.ada:6782 Date: 2005-12-08T21:49:51+01:00 List-Id: I have been running both ObjectAda and GNAT in paralell and i had found that the easiest way to move from ObjectAda to GNAT is the folowing approach. The maybe tricky parts: * Get a clear view of the build dependencies in the current system. * Get all your source code to match the GNAT naming conventions. The booring part: * Set up a project structure matching the ObjectAda structures with GNAT project-files ".gpr" files (no library projects at this point). The fun part: * Build your programs using GNAT. * Verify. The final part: * Change the "library" projects to be real library projects (static) in the GNAT environment and do a complete build. * Change the desired static libraries to be dynamic. * Recompile and copy the DLL:s to the correct directore for execution. * Verify. * Done. /Per Sandberg Note: I have done this with a >2MSLOC system almost single handed. ';'%?PF ;/l. wrote: > I am trying to convert a project written in Aonix Ada 7.2.2 to gnat. I > would like to call the existing dll libraries compiled in Aonix from > gnat compiled code. I am doing this because the packages are large and > it would help me convert the code in peices. At this time some > functions seem to work but others cause a segmentation fault. > > Can anyone help with a procedure for calling the Aonix Ada compiled dll > from gnat? >