file name does not match unit name, should be "case_folding.adb"

28
Dec

Ada is an advanced language that makes use of a with keyword (an equivalent to the import keyword in Java.) To implement the with keyword, the compiler searches for a file using the same name as the name specified in the with declaration. So for example, if you use

1
 

The compiler expects to find a file named aada_compiler_ucs4_character.ads (specification and declaration header file.)

This means the package definition or main procedure (i.e. program) must match the name of the file.1

So to fix this problem, edit your file and compare the name of the package or procedure (program) with the name of the file used to save your code and fix one or the other or both as you see fit.

  • 1. Note that imposes a certain number of constrains to the naming of files used for packages and procedures: they must only include valid identifier characters. For example, aada-compiler.adb could not be valid.
0
Your rating: None