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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,52d54f4582b823ae X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: HELP : what is the meaning of " file_name(62) : 01 : end of file expected, file can have..y Date: 1996/02/21 Message-ID: #1/1 X-Deja-AN: 140573947 references: <4gg3rl$3lh@portal.gmu.edu> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-02-21T00:00:00+00:00 List-Id: S. H. Huang asked: "Please, can anyone help me solve the problem. After gcc -c, the compiler told XXXX(62):01: end of file expected, file can have only one compilation unit Thanks in advance. PS: XXXX is the file name" First, a meta-answer: read the documentation! And in particular the part of the documentation that says to send questions to report@gnat.com. If you don't have gnatinfo.txt, then concentrate on getting it before proceeding! Second, the amazing answer to your question :-) is that: "A file can have only one compilation unit"! Sometimes, GNAT speaks without forked tongue :-) Seriously, there source representation required for GNAT uses a separate file for each compilation unit. If you have existing source files that do not obey this rule, use gnatchop to chop them up as required by GNAT. For how to use gnatchop, see gnatinfo.txt.