Next: , Previous: Restrictions on foreign declarations, Up: Interfacing to other languages


5.9.3 Linking with foreign object files

You may add additional files or options during the link using the -Wl, of GHDL, as described in Elaboration command. 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.