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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d9ad419d8c604c82 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-30 09:01:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-quince!easynet.net!easynet-post2!not-for-mail From: "Xavier SAUTEJEAU" Newsgroups: comp.lang.ada References: <3ef87707$0$13736$afc38c87@news.easynet.fr> <3EF88C70.8090405@sd.aonix.com> Subject: Re: Linking libraries from the command line using ObjectAda on Windows Date: Mon, 30 Jun 2003 18:13:34 +0200 X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Message-ID: <3f005ef6$0$13735$afc38c87@news.easynet.fr> Organization: [posted via Easynet France] NNTP-Posting-Host: 212.180.111.231 X-Trace: DXC=YWEE`5lS9kY5:=`MQQ6l4X@ZY0PJg355We Thanks for the indication. Now, I'd like to create an ADA library using ObjectAda and provide the user only the specification files (.ADS) and an archive containing all the required files but the implementation files (.ADB). The idea being something like that: the user registers the spec files using adareg and the -ll option to link to the archive. All of it from the command line. This is like providing header files and pre-compiled libraries in C. I'd like an example of how to create such a library, and how to use it. Does anyone know if I can and how to do that ? Regards, Xavier "Steve Hancher" wrote in message news:3EF88C70.8090405@sd.aonix.com... > You have a misunderstanding about the relationship between Ada libraries and > Windows libraries. Creating a Windows library from Ada object files only > removes the requirement for the OBJ directory. After creating the Windows > library, you should not delete either ADA.LIB or UNIT.MAP. Then, libcall.adb > should be compiled into a different Ada library with a reference (via adaopts) > to the Ada library containing P_hello and P_hello2. By the way, you don't > need to compile dummy.adb, you don't need to build dummy, and the adamake > won't work because you have never compiled anything. >