私はPerlXSを使用してC++オブジェクトの周りにperlラッパーを記述しています。通常、私のfcnはstring / intなどを取り込んでおり、問題なく作成できます。.xsファイルにこのようなコードを書くだけです
MyClass::func_a(std::string a, int b);
今回; stlベクトルを取り込む関数が必要です
MyClass::func_a(std::vector<std::string> vector)
このエラーが発生します:
conversion from `SV*' to non-scalar type
`std::vector<std::string, std::allocator<std::string> >'