python - SWIG Syntax Error -
i'm trying compile swig bindings wireless communications library (http://www.yonch.com/wireless) uses it++ library. using swig version 2.0.11 on ubuntu 14.04.
this error getting when trying build:
/usr/include/itpp/base/binary.h:162: error: syntax error in input(1)
here line 162 binary.h:
itpp_export std::ostream &operator<<(std::ostream &output, const bin &inbin);
if rest of file needed can found here: http://montecristo.co.it.pt/itpp/binary_8h_source.html
this swig command line call being used:
/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
i have no experience swig , can't seem see code causing syntax error. insights appreciated!
exports not understood swig
i add a
#define itpp_export
in .i file after inclusion of c/c++ headers , before include them using
%include "someheader.h"
Comments
Post a Comment