Message"undefined reference" Is Returned When libfaiss.so Is Linked

In openEuler Release 22.03 (LTS), after Faiss is compiled and installed by using the default CMake and GCC, the "undefined reference" error is returned when libfaiss.so is linked.

Possible Cause

CMake installed by default in openEuler release 22.03 (LTS) or using yum has compatibility issues.

Solution

Visit the official website of CMake to obtain its source code of the corresponding version, and recompile and install it.