SWIG语法E

2024-10-01 09:27:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图从同样使用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的经验,而且似乎不知道是什么代码导致了语法错误。任何见解都将不胜感激!在


Tags: httpbasebinincludeusrwwwitbindings