Next: , Previous: Using vendor libraries, Up: GHDL implementation of VHDL


5.8 Using ieee.math_real or ieee.math_complex

Contrary to other ‘ieee’ libraries, the math packages sources are not freely available. The sources provided with GHDL are based on an early draft and use the C libraries. As a consequence, you should link your design with the ‘libm.a’ library using the -Wl, option like:

     $ ghdl -e -Wl,-lm my_design

Please, refer to your system manual for more details.

Please also note that the ‘ieee’ libraries are not the same as the drafts.

If you really need the ‘ieee’ math libraries, they are available on the web, but they cannot be included in GHDL.