Rate This Document
Findability
Accuracy
Completeness
Readability

Migrating the Library That Uses High-Performance Function Interfaces and C Language

  1. Check whether the source code contains the header file <mathimf.h>/<math.h> /<mathlib.h> of the open source basic math library.
  2. Replace the open source header file with <km.h>.
  3. In the compilation options, replace -lm/-lmathlib with -lkm -lm.
  4. Add environment variables. /PATH_TO_KM indicates the installation path.
    export LD_LIBRARY_PATH=/PATH_TO_KM:$LD_LIBRARY_PATH