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
Date: 1996-02-21T00:00:00+00:00 [thread overview]
Message-ID: <dewar.824942492@schonberg> (raw)
In-Reply-To: 4gg3rl$3lh@portal.gmu.edu
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.
next prev parent reply other threads:[~1996-02-21 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-21 0:00 HELP : what is the meaning of " file_name(62) : 01 : end of file expected, file can have..y S. H. Huang
1996-02-21 0:00 ` Robert Dewar [this message]
1996-02-22 0:00 ` Daniel Rickers
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox