C++ライブラリでSWIG2.0.4を使用しようとしていますが、.iファイルに次のものがあります。
%module coh
%{
#include "coherence/lang.ns"
#include "coherence/net/CacheFactory.hpp"
#include "coherence/net/NamedCache.hpp"
%}
%include "coherence/lang.ns"
%include "coherence/net/CacheFactory.hpp"
%include "coherence/net/NamedCache.hpp"
私はそれをかき混ぜます:
$ swig -c++ -ocaml -I/opt/coherence-cpp/include coh.i
しかし、エラーメッセージが表示されます。
/opt/coherence-cpp/include/coherence/net/CacheFactory.hpp:31: Error: Syntax error in input(1)
そのファイルの31行目は次のとおりです。
using coherence::run::xml::XmlElement;
using
キーワードはサポートされていませんか?これに対する回避策はありますか、それとも自分のC ++ラッパーを作成し、代わりにSWIGを作成する必要がありますか?ありがとう!
更新:私は自分のラッパーを書くことにしました(そして将来的には、最初から別のアプローチを取るために)。