next up previous contents index
Next: Software Freedom Up: Extensions Previous: Compiling   Contents   Index

Runtime Linking

The script epix allows input files to be linked with external libraries at run time, when the input file is compiled into a temporary executable.

epix recognizes command line options and passes them verbatim to the compiler. The most commonly used options are those of the form

   -I<include>     -L<libdir>     -l<lib>
There must be no space between the option flags -I, -L, and -l and their arguments. For example, to link figure.xp against mylibs/libcustom.a, run the command
   epix -Lmylibs -lcustom figure
The options -I. -L. tell the compiler to look in the current directory for header and library files. Compiler options may appear in any order, but must come before the name of the input file; options that come after the input file are silently discarded.

Compiler options may be placed in the configuration file $HOME/.epixrc, with syntax as above. A line in the config file that contains a pound sign (#) is a comment, no matter where in the line the # appears. If any non-comment line fails to start with a dash, the rest of the file is silently discarded. Command-line options are read before the config file.


next up previous contents index
Next: Software Freedom Up: Extensions Previous: Compiling   Contents   Index
Andrew D. Hwang 2004-09-04