www.delorie.com/gnu/docs/gcc/gnat_ug_186.html   search  
 
Buy the book!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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 gnatbind. 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 \
  -largs -lmy_lib

This can be simplified down to the following:
 
$ gnatmake my_appl
when the following conditions are met:


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003