我要评分
获取效率
正确性
完整性
易理解

Failed to Link the KML_VML Dynamic Library

Symptom

The following message is prompted when adding -L /usr/local/kml/lib/kvml/single -lkvml -lkm as the dynamic library path in the compilation options for the single-threaded version of KML_VML:

/usr/bin/ld: /usr/local/kml/lib/kvml/single/libkvml.so: undefined reference to `sindf' 
/usr/bin/ld: /usr/local/kml/lib/kvml/single/libkvml.so: undefined reference to `tanpif' 
/usr/bin/ld: /usr/local/kml/lib/kvml/single/libkvml.so: undefined reference to `powrf' 
/usr/bin/ld: /usr/local/kml/lib/kvml/single/libkvml.so: undefined reference to `acospi'

Key Process and Cause Analysis

The corresponding library file is missing in the compilation link options.

Conclusion and Solution

Modify the compilation command as follows and run it again:

g++ -L /usr/local/kml/lib/kvml/single -lkvml -L /usr/local/kml/lib -lkm -lm