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

匿名 (未验证) 提交于 2019-12-03 00:56:02

问题:

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#.

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