comp.lang.ada
 help / color / mirror / Atom feed
* HELP  : what is the meaning of " file_name(62) : 01 : end of file expected, file can have..y
@ 1996-02-21  0:00 S. H. Huang
  1996-02-21  0:00 ` Robert Dewar
  1996-02-22  0:00 ` Daniel Rickers
  0 siblings, 2 replies; 3+ messages in thread
From: S. H. Huang @ 1996-02-21  0:00 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HELP : what is the meaning of " file_name(62) : 01 : end of file expected, file can have..y
  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
  1996-02-22  0:00 ` Daniel Rickers
  1 sibling, 0 replies; 3+ messages in thread
From: Robert Dewar @ 1996-02-21  0:00 UTC (permalink / raw)


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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HELP  : what is the meaning of " file_name(62) : 01 : end of file expected, file can have..y
  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
@ 1996-02-22  0:00 ` Daniel Rickers
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Rickers @ 1996-02-22  0:00 UTC (permalink / raw)


S. H. Huang wrote:
> 
> 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


Hey,

Sounds like having more than one main procedure in one file,
but can't say more without having seen what you wanted to compile,
so (perhaps) post your source.


Daniel

-- 
    _/_/_/  _/_/_/  _/   Daniel Rickers   Tel: 05931/805-433
   _/      _/      _/                     Fax: 05931/805-100
  _/      _/      _/     Lohberg 10       mailto:rickers@cci.de
 _/      _/      _/      49716 Meppen            oder:
_/_/_/  _/_/_/  _/       oder:            Daniel.Rickers@t-online.de
Competence Center        Postfach 1225    
 Informatik GmbH         49702 Meppen     http://www.cci.de




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-02-22  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
1996-02-22  0:00 ` Daniel Rickers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox