.. index:: cannot generate code
If you attempt to compile any of these files, you will get one of the
-following error messages (where ``fff`` is the name of the file you
+following error messages (where :file:`fff` is the name of the file you
compiled):
- ::
+.. code-block:: text
- cannot generate code for file ``fff`` (package spec)
- to check package spec, use -gnatc
+ cannot generate code for file fff (package spec)
- cannot generate code for file ``fff`` (missing subunits)
- to check parent unit, use -gnatc
+ cannot generate code for file fff (missing subunits)
- cannot generate code for file ``fff`` (subprogram spec)
- to check subprogram spec, use -gnatc
+ cannot generate code for file fff (subprogram spec)
- cannot generate code for file ``fff`` (subunit)
- to check subunit, use -gnatc
+ cannot generate code for file fff (subunit)
As indicated by the above error messages, if you want to submit
@copying
@quotation
-GNAT Coding Style: A Guide for GNAT Developers , Jun 02, 2025
+GNAT Coding Style: A Guide for GNAT Developers , Jan 09, 2026
AdaCore
-Copyright @copyright{} 2008-2025, Free Software Foundation
+Copyright @copyright{} 2008-2026, Free Software Foundation
@end quotation
@end copying
@copying
@quotation
-GNAT User's Guide for Native Platforms , Dec 05, 2025
+GNAT User's Guide for Native Platforms , Jan 09, 2026
AdaCore
following error messages (where @code{fff} is the name of the file you
compiled):
-@quotation
-
@example
-cannot generate code for file `@w{`}fff`@w{`} (package spec)
-to check package spec, use -gnatc
+cannot generate code for file fff (package spec)
-cannot generate code for file `@w{`}fff`@w{`} (missing subunits)
-to check parent unit, use -gnatc
+cannot generate code for file fff (missing subunits)
-cannot generate code for file `@w{`}fff`@w{`} (subprogram spec)
-to check subprogram spec, use -gnatc
+cannot generate code for file fff (subprogram spec)
-cannot generate code for file `@w{`}fff`@w{`} (subunit)
-to check subunit, use -gnatc
+cannot generate code for file fff (subunit)
@end example
-@end quotation
As indicated by the above error messages, if you want to submit
one of these files to the compiler to check for correct semantics
@printindex ge
-@anchor{d2}@w{ }
@anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ }
+@anchor{d2}@w{ }
@c %**end of body
@bye