我试图从同样使用IT++库的无线通信库(http://www.yonch.com/wireless)编译一些SWIG绑定。我在ubuntu14.04上使用的是SWIG版本2.0.11。在
这是我在尝试构建时遇到的错误:
/usr/include/itpp/base/binary.h:162: Error: Syntax error in input(1)
这是binary.h中的第162行:
ITPP_EXPORT std::ostream &operator<<(std::ostream &output, const bin &inbin);
如果需要该文件的其余部分,可以在此处找到:http://montecristo.co.it.pt/itpp/binary_8h_source.html
这是正在使用的SWIG命令行调用:
/usr/bin/swig -c++ -python -I/home/user/anaconda/include/python2.7 -I../../../include -I/usr/include -I../../../bindings/itpp -I../../../bindings/itpp/.. -DHAVE_CONFIG_H -o base_sparse.cpp ../../../bindings/itpp/base_sparse.i
我几乎没有使用SWIG的经验,而且似乎不知道是什么代码导致了语法错误。任何见解都将不胜感激!在
SWIG不理解出口
我通常会加一个
<>在包含C/C++标题后的.i文件中,然后在使用之前包含它们 ^{pr2}$相关问题 更多 >
编程相关推荐