16.3 Using an Ada Library
In order to use a Ada library, you need to make sure that this
library is on both your source and object path
3.3 Search Paths and the Run-Time Library (RTL)
and 4.11 Search Paths for
instance, you can use the library "mylib" installed in "/dir/my_lib_src"
and "/dir/my_lib_obj" with the following commands:
$ gnatmake -aI/dir/my_lib_src -aO/dir/my_lib_obj my_appl \
This can be simplified down to the following:
when the following conditions are met:
"/dir/my_lib_src" has been added by the user to the environment
variable "ADA_INCLUDE_PATH", or by the administrator to the file
"/dir/my_lib_obj" has been added by the user to the environment
variable "ADA_OBJECTS_PATH", or by the administrator to the file
a pragma linker_options, as mentioned in 16.1 Creating an Ada Library
as been added to the sources.