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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,772ae8afc5db35f2 X-Google-Attributes: gid103376,public From: nospam@thanks.com.au (Don Harrison) Subject: Re: Can't export object of private type Date: 1999/03/11 Message-ID: #1/1 X-Deja-AN: 454259010 Sender: news@syd.csa.com.au X-Nntp-Posting-Host: dev7 References: <7c68t9$vjk$1@nnrp1.dejanews.com> Organization: CSC Australia, Sydney Reply-To: nospam@thanks.com.au Newsgroups: comp.lang.ada Date: 1999-03-11T00:00:00+00:00 List-Id: Robert Dewar wrote: :In Ada 95 there is no requirement for a main program, period! How do I get GNAT to bind this?.. package Not_a_Main_Program is pragma Elaborate_Body; end; with Text_Io; use Text_IO; package body Not_a_Main_Program is begin Put_Line ("I am not a main program"); end; Using GNAT 3.11b: gcc -c not_a_main_program.adb gnatbind not_a_main_program.ali error: "not_a_main_program.ali" does not contain a unit that can be a main program -- Don (Harrison). donh at syd.csa.com.au