Node:Linking with foreign object files, Next:, Previous:Restrictions on foreign declarations, Up:Interfacing to other languages



Linking with foreign object files

You may add additionnal files or options during the link using the -Wl, of GHDL, as described in Elaboration mode. For example:

$ ghdl -e -Wl,-lm math_tb
will create the math_tb executable with the lm (mathematical) library.

Note the c library is always linked with an executable.