Next: , Previous:   [Contents][Index]

10 Compiling, Binding and Linking Applications with ASIS-for-GNAT

If you have installed ASIS-for-GNAT as an Ada library and added the directory containing all source, ALI and library files of this library to the values of the ADA_INCLUDE_PATH and ADA_OBJECTS_PATH environment variables (which is a recommended way to install ASIS-for-GNAT), you do not need to supply any ASIS-specific options for gcc or for gnatbind when working with your ASIS applications. However for gnatlink you have to provide an additional parameter -lasis:

$ gnatlink my_application -lasis

When using gnatmake, you also have to provide this linker parameter whenever a call to gnatmake invokes gnatlink:

$ gnatmake ... my_application -largs -lasis

You do not need these linker parameters if a call to gnatmake is not creating the executable:

$ gnatmake -c ... my_application

If you have installed ASIS-for-GNAT without building an ASIS library, then you have to do the following when working with your ASIS application code:

If you have added directories with ASIS-for-GNAT source, object and ALI files to the values of the GNAT-specific environment variables, you do not have to provide any ASIS-specific parameter when using gnatmake for your ASIS application.


Next: , Previous:   [Contents][Index]