请问下有没有使用swig调用c++11代码的成功案例?
我这边按照 http://www.swig.org/Doc3.0/Go.html 一文的提示操作,在调用 go install 时会出现
“This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.”
的提示。
不知道这个问题要如何解决呢?
SWIG supports the new C++ syntax changes with some minor limitations in some areas such as decltype expressions and variadic templates. Wrappers for the new STL types (unordered_ containers, result_of, tuples) are incomplete. The wrappers for the new containers would work much like the C++03 containers and users are welcome to help by adapting the existing container interface files and submitting them as a patch for inclusion in future versions of SWIG.
#4
更多评论