我正在尝试构建 NNAPI c++ 本机程序,我需要使用 sharedmem 库。我找到了 NeuralNetwork.h 的动态库文件,但是我找不到 sharedmem.h 的动态库文件。因此我有一个链接器错误,例如,
ld: error: undefined symbol: ASharedMemory_create
>>> referenced by simple_model.cc
>>> CMakeFiles/main.dir/src/simple_model.cc.o:(SimpleModel::SimpleModel(unsigned long, int, int, unsigned long))
>>> referenced by simple_model.cc
>>> CMakeFiles/main.dir/src/simple_model.cc.o:(SimpleModel::SimpleModel(unsigned long, int, int, unsigned long))
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
我如何链接 sharedmem.h 文件。