我知道以前有人问过这个问题,但我没有找到有用的解决方案。完整的错误是:
Executing: "/home/mint/Documents/test_sensor/cycl_test/top_block.py"
Using Volk machine: avx_64_mmx_orc
Traceback (most recent call last):
File "/home/mint/Documents/test_sensor/cycl_test/top_block.py", line 87, in <module>
tb = top_block()
File "/home/mint/Documents/test_sensor/cycl_test/top_block.py", line 61, in __init__
self.cycl_MME_cpp_0 = cycl.MME_cpp(1000, 16, 0.1)
AttributeError: 'module' object has no attribute 'MME_cpp'
Run Code Online (Sandbox Code Playgroud)
我从之前的问题中找到了一些可能的原因:
函数参数不匹配(包括 .cc 和 .h 中的引用函数)
喝水问题
.xml 文件中的回调
nm -C -u libgnuradio-.so
我已经检查了前 3 个原因,但我不确定如何使用最后一个方法找出未定义的符号。结果有一部分:
U gsl_linalg_SV_decomp
U gsl_matrix_alloc
U gsl_matrix_set
U gsl_matrix_set_zero
U gsl_vector_alloc
U gsl_vector_get
Run Code Online (Sandbox Code Playgroud)
这是否意味着所有 gsl 函数都未定义?如果是这样,我该如何处理?
除了这四个原因,我的问题还有其他提示吗?
我感谢您的帮助。
附录:
1.MME_cpp_impl.cc
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include …Run Code Online (Sandbox Code Playgroud)