我試圖在CentOS 7 My environment: gcc (g++) 7.20, bazel 0.5.3, python3 (with all necessary dependencies listed on tensorflow web site), swig 3.0.12, openjdk 8. Everything is installed in the users scope, w
我想生成下面的C函數R(編程語言)包裝: int *test(void)
{
int i;
i = 1024;
return (int *) i;
}
爲了創建這個包裝,我使用痛飲具有以下接口: %module X
%{
extern int *test(void);
%}
extern int *test(void);
我可以成功創建