Migrating the Library That Uses High-Performance Function Interfaces and C Language
- Check whether the source code contains the header file <mathimf.h>/<math.h> /<mathlib.h> of the open source basic math library.
- Replace the open source header file with <km.h>.
- In the compilation options, replace -lm/-lmathlib with -lkm -lm.
- Add environment variables. /PATH_TO_KM indicates the installation path.
export LD_LIBRARY_PATH=/PATH_TO_KM:$LD_LIBRARY_PATH