[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
XML/Ada is a library. When compiling an application that uses it, you thus need to specify where the specifications are to be found, as well as where the libraries are installed.
There are several ways to do it:
xmlada-config
script, and let it
provide the list of switches for gnatmake
. This is more
convenient on Unix systems, where you can simply compile your application
with
gnatmake main.adb `xmlada-config` |
Note the use of backticks. This means that xmlada-config
is
first executed, and then the command line is replaced with the output of
the script, thus finally executing something like:
gnatmake main.adb -Iprefix/include/xmlada -largs -Lprefix/lib \ -lxmlada_input_sources -lxmlada_sax -lxmlada_unicode -lxmlada_dom |
Unfortunately, this behavior is not available on Windows (unless of course
you use a Unix shell). The simplest in that case is to create a
`Makefile', to be used with the make
command, and copy-paste
the output of xmlada-config
into it.
xmlada-config
has several switches that might be useful:
gnatreg
.
This means that GNAT
will automatically find the installation
directory for the XML/Ada.
xmlada-config
can also be used, provided you use one of the
following switches:
gcc
.
gnatlink
.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |