SWIG: Warning 453: Can't apply (char *STRING,size_t LENGTH). No typemaps are defined

核能气质少年 提交于 2019-12-23 18:17:53

问题


I have a very small .i file basically with this information:

%module (directors="1") tu
%include "typemaps.i"
%include "enums.swg"

%header %{ 
#include <my_header.h>
%}

%apply (char *STRING, size_t LENGTH) { (char* msg_buf,  int buf_len) };

When generating java bindings there are no warnings but when generating c# bindings I get this:

SWIG: Warning 453: Can't apply (char *STRING,size_t LENGTH). No typemaps are defined

Can anyone advise on what might be the problem. The .i file is identical for java and c#.

来源:https://stackoverflow.com/questions/24012753/swig-warning-453-cant-apply-char-string-size-t-length-no-typemaps-are-def

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!