go通过swig方式调用c++,遇到困难了,有偿求助!

18393910396 · · 2186 次点击
swig 对lock ,atomic 等同步控制不能支持。lock不能被copy
#3
更多评论
现在更新了swig的接口文件,class 里面带有指针的函数报"undefined reference" ```go # goama/src /usr/bin/ld: $WORK/b038/_x003.o: in function `_wrap_IAMDApi_GetVersion_src_07cd417a0356dfef': src/ama_wrap.cxx:21338: undefined reference to `amd::ama::IAMDApi::GetVersion()' /usr/bin/ld: $WORK/b038/_x003.o: in function `_wrap_IAMDApi_Init_src_07cd417a0356dfef': src/ama_wrap.cxx:21353: undefined reference to `amd::ama::IAMDApi::Init(amd::ama::IAMDSpi const*, amd::ama::Cfg const&)' /usr/bin/ld: $WORK/b038/_x003.o: in function `_wrap_IAMDApi_Release_src_07cd417a0356dfef': src/ama_wrap.cxx:21370: undefined reference to `amd::ama::IAMDApi::Release()' ```
#1
解决了,是共享库的问题。
#2