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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.165.165 with SMTP id yz5mr13883398pab.37.1404717358104; Mon, 07 Jul 2014 00:15:58 -0700 (PDT) X-Received: by 10.140.44.34 with SMTP id f31mr12875qga.14.1404717358054; Mon, 07 Jul 2014 00:15:58 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!hn18no4352347igb.0!news-out.google.com!a8ni6411qaq.1!nntp.google.com!i13no6565064qae.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Jul 2014 00:15:57 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=73.179.102.101; posting-account=wEPvUgoAAABrLeiz_LRhQ3jeEhyfWVMH NNTP-Posting-Host: 73.179.102.101 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Protected Type compiler complaint From: NiGHTS Injection-Date: Mon, 07 Jul 2014 07:15:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:20763 Date: 2014-07-07T00:15:57-07:00 List-Id: Subject: Protected Type compiler complaint Platform: Linux (Kubuntu 14.04 32-bit) Dev: GPS 5.0-16, GNAT 4.6 I am new to Ada and GPS so forgive me if my question seems silly. I have tr= ied searching for the answer from various places for hours but for the life= of me I can't even find a hint. I have a very simple project in GPS with a "main" package and a "test" prot= ected type. They occupy files with the same name and adb/ads extensions. After creating my test files I went to the Menu "Project" -> "Edit Project = Properties" -> "Source Files" tab. Then I added the test.adb & test.ads fil= es where my protected type declarations are located.=20 When I compile it complains that "protected declaration cannot be used as c= ompilation unit" on line 1 of test.ads. So I remove those files from the pr= oject source files options menu. Then when I compile again it complains abo= ut "test.ads not found" on line 3 of main.adb. Here is a summarized view of what my test.ads looks like: protected type Test is procedure DoSomething; end Test; And here is a summarized view of what my main.adb looks like: with Test; use Test; procedure main is begin Test.DoSomething; end; Any ideas what I might be doing wrong? Thank you in advance for your help!