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,b1cf4428bf3b72a4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!news-peer1!btnet-feed3!btnet!itchen!hamble.qinetiq.com!not-for-mail From: "Harry Overs" Newsgroups: comp.lang.ada Subject: Re: library files Date: Tue, 10 Aug 2004 15:44:17 +0100 Organization: QinetiQ Message-ID: References: NNTP-Posting-Host: 10.176.81.216 X-Trace: hamble.qinetiq.com 1092149001 15429 10.176.81.216 (10 Aug 2004 14:43:21 GMT) X-Complaints-To: postmaster@qinetiq.com NNTP-Posting-Date: Tue, 10 Aug 2004 14:43:21 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: g2news1.google.com comp.lang.ada:2650 Date: 2004-08-10T15:44:17+01:00 List-Id: Hi, thanks both for replying. I've checked what you have both suggested and: 1) we are using the gnu gnat compiler 2) the Ada sub programs have got the pragma export designation 3) I believe I have all of the needed source code apart from the common system files (though as I dont know anything about Ada I cant verify this). I have continued to persevere with this and going through the gnu documentation I found out I was actually creating an archive instead of a library (now following the steps laid out at http://www.delorie.com/gnu/docs/gcc/gnat_ug_188.html), so I have now change my build script so that it attempts to create a library instead. However I'm now getting errors during the creation of the library (e.g. "undefined reference to 'system__soft_links__get_jmpbuf_address_soft'"). During my attempts to solve these errors I've created a dummy Ada program which contained one method (no main) and one external method (using pragma export), this program also came up with similar errors when I tried to compile it into a library. so can anyone give me any pointers on how to remedy this? many thanks, "Harry Overs" wrote in message news:cete5c$895$1@hamble.qinetiq.com... > Hi, > > we've got some legacy Ada source code which we want to compile into a > library which will be accessed using a MS VC++ application. Although we've > managed to compile the ada code and turn the .o files into a library when it > comes to linking the C++ program we get thousands of errors which seem to > relate to system calls within the library (i.e. put method). > Do we need to do anything 'special' whilst creating the library or the > object files? at present we just use (from the command line): > > ar r myLib.lib *.o > > many thanks, > >