comp.lang.ada
 help / color / mirror / Atom feed
* Problem with GNAT option "-gnatt"  (adt tree)
@ 2002-06-10  6:36 Alain FONTAINE
  2002-06-10 10:14 ` Jean-Pierre Rosen
  0 siblings, 1 reply; 2+ messages in thread
From: Alain FONTAINE @ 2002-06-10  6:36 UTC (permalink / raw)


I am tryng to use "adabrowse" for making an html documentation
for a piece of software.
My environment is GNAT 3.14+ASIS 3.14+adbrowse on windows XP

The problem is the following:

The spec files compiled with the option "-gnatt" as:
    gcc -c -gnatc -gnatt -gnatQ -gnatq file.ads

either produce an .adt file or
don't produce adt file with the following message:
'linker input file unused since linking not done'

Example:
D:\dev\ada\adabrowse_2.01\de>gcc -c -gnatc -gnatt -gnatQ -gnatq -I.. f1.ads

D:\dev\ada\adabrowse_2.01\de>gcc -c -gnatc -gnatt -gnatQ -gnatq -I.. f2.ADS
gcc: f2.ADS: linker input file unused since linking not done

I have not found something sound for this message.

As I need the adt file for adabrowse I am stuck!
Remarks: 
1)The software compiles fine and can produce an executable,
so there is no compilation error and linkage is done.
2) adabrowse is working fine on the example

Can somebody explain the problem?
Thank you in advance



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

* Re: Problem with GNAT option "-gnatt"  (adt tree)
  2002-06-10  6:36 Problem with GNAT option "-gnatt" (adt tree) Alain FONTAINE
@ 2002-06-10 10:14 ` Jean-Pierre Rosen
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Pierre Rosen @ 2002-06-10 10:14 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]


"Alain FONTAINE" <dev-abf@wanadoo.fr> a �crit dans le message news: > Example:
> D:\dev\ada\adabrowse_2.01\de>gcc -c -gnatc -gnatt -gnatQ -gnatq -I.. f1.ads
>
> D:\dev\ada\adabrowse_2.01\de>gcc -c -gnatc -gnatt -gnatQ -gnatq -I.. f2.ADS
> gcc: f2.ADS: linker input file unused since linking not done
>
gcc recognizes which language to use according to the extension. However, anything not recognized as a language is passed to the
linker. ".ads" is an extension for Ada, but not ".ADS". Therefore it should be passed to the linker, but since there is a -c option,
linking is not done and gcc has nothing do to with f2.ADS. QED (french version: CQFD :-).

--
---------------------------------------------------------
           J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr





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

end of thread, other threads:[~2002-06-10 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-10  6:36 Problem with GNAT option "-gnatt" (adt tree) Alain FONTAINE
2002-06-10 10:14 ` Jean-Pierre Rosen

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