string arguments are not recognized by SWIG

前端 未结 1 1065
一整个雨季
一整个雨季 2021-01-03 07:49

I have a frustrating problem which got me spend a lot of time dealing with it but I did not find any solution.

I want to use C++ class in PHP with SWIG. I generated

相关标签:
1条回答
  • 2021-01-03 08:35

    You need to have:

    %include <std_string.i>
    

    Early enough in the SWIG interface (i.e. before std::string is first seen).

    0 讨论(0)
提交回复
热议问题