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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.68.133.75 with SMTP id pa11mr5331666pbb.2.1396641740054; Fri, 04 Apr 2014 13:02:20 -0700 (PDT) X-Received: by 10.182.241.196 with SMTP id wk4mr18143obc.39.1396641739910; Fri, 04 Apr 2014 13:02:19 -0700 (PDT) Path: backlog3.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!ur14no2662405igb.0!news-out.google.com!gi6ni200igc.0!nntp.google.com!l13no3005530iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 4 Apr 2014 13:02:19 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=208.246.200.50; posting-account=n6BS1woAAABUiwKFf83ZWQ9bJOvH2vKq NNTP-Posting-Host: 208.246.200.50 References: <85ha69ue15.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9412dfa1-8fae-4396-b7cf-06ea9554de6c@googlegroups.com> Subject: Re: gnatmake error I don't understand From: drrob106@gmail.com Injection-Date: Fri, 04 Apr 2014 20:02:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:185520 Date: 2014-04-04T13:02:19-07:00 List-Id: Some have already noticed my Modula-2 origins. I am just learning Ada, so my coding style is that of what I know (as we all do). I could not find electronic versions of that code, so I typed it myself using my own style. I was able to get this code to link by adding a separate procedure, testhabits.adb that merely called Habits from texthabits. I was not aware that libraries listed in 'with' clause in a spec file do not need to be repeated in the body file. I'll play with that a little. I never coded this way in M-2, and I don't think that M-2 would have allowed that. As was suggested, the error may be in my gpr file; the for Main use (""); line defines a separate file. How would I write the gpr file if I were to try to have the main program in the package, as I've tried to do here? It is my understanding that C-flavored languages do this routinely. At least, from what I've seen in books and articles. Thanks guys for all the help.