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,FREEMAIL_FROM, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.71.85 with SMTP id u82mr31709139ywa.9.1454974790071; Mon, 08 Feb 2016 15:39:50 -0800 (PST) X-Received: by 10.182.227.200 with SMTP id sc8mr463598obc.0.1454974789988; Mon, 08 Feb 2016 15:39:49 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!94no1235704qgt.1!news-out.google.com!kr2ni10528igb.0!nntp.google.com!hb3no2384181igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 8 Feb 2016 15:39:49 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:8350:ba86:87ff:fed6:5907; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:8350:ba86:87ff:fed6:5907 References: <0528d7a8-773d-44b0-8f0a-e9aa48867443@googlegroups.com> <8778e70b-81e1-4dcc-8ecb-8bcaceb74b57@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4b48fda1-7322-4960-b45c-6b7503cab9d9@googlegroups.com> Subject: Re: I do not understand this error... From: John Smith Injection-Date: Mon, 08 Feb 2016 23:39:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2814 X-Received-Body-CRC: 1747371124 Xref: news.eternal-september.org comp.lang.ada:29449 Date: 2016-02-08T15:39:49-08:00 List-Id: On Sunday, February 7, 2016 at 11:41:51 PM UTC-5, Jeffrey R. Carter wrote: > On 02/07/2016 08:51 PM, John Smith wrote: > > > > Stupid question. What do you mean by a library-level package? Is this just > > a regular package that has these callbacks declared and I just include it in > > my application? > > "Library-level" means not nested in anything else. > > [Technically, nested directly in Standard, since all compilation units are > considered nested directly in Standard. Standard is usually not mentioned > explicitly, though, so this may be confusing to a beginner.] > > -- > Jeff Carter > "I'm a lumberjack and I'm OK." > Monty Python's Flying Circus > 54 How does that look like? I tried to "with" the following package: http://pastebin.com/ghd6kjZP But I got the following errors: $ gprbuild using project file gtk_hello_world.gpr gcc -c -g -gnatwa gtk_hello_world.adb gtk_hello_world.adb:22:26: warning: formal parameter "Widget" is not referenced gtk_hello_world.adb:28:22: warning: formal parameter "Widget" is not referenced gtk_hello_world.adb:38:03: "Return_Handlers" is not visible gtk_hello_world.adb:38:03: non-visible declaration at handler_package.ads:11 gtk_hello_world.adb:39:03: "Handlers" is not visible gtk_hello_world.adb:39:03: non-visible declaration at handler_package.ads:10 gtk_hello_world.adb:39:03: non-visible declaration at gtk-handlers.ads:181 gprbuild: *** compilation phase failed