请问下有没有使用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 的手册里有专门对 c++11 的说明的。好像是在 TCL 章节吧。
看着比较复杂,时间比较赶,以后再慢慢研究。 现在用cgo的方案解决问题了。
时间比较赶,以后有时间再研究。
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.