Guillaume Yziquel a écrit :
> Hello.
>
> I'm still wrapping my C++ code into OCaml. I'm having an issue with
> SWIGTYPES. I was getting this
OK. Solved. I removed using namespace std to avoid confusions...
But know that I've added %include std_list.i, I get the following error:
> yziquel@seldon:~/svn/main/libmorfo-ocaml$ make 2>& 1 | grep error
> /usr/include/c++/4.3/bits/stl_list.h:1394: error: no match for ‘operator==’ in ‘__i1.std::_List_const_iterator<_Tp>::operator* [with _Tp = analysis]() == __i2.std::_List_const_iterator<_Tp>::operator* [with _Tp = analysis]()’
The freeling.i file I'm using follows below.
What does this error mean?
All the best,
Guillaume Yziquel.
> yziquel@seldon:~/svn/main/libmorfo-ocaml$ cat freeling.i
> %module swig_Freeling
> %{
> #include "freeling.h"
> %}
>
> %include std_string.i
> %include std_list.i
>
> %template(ListWord) std::list<word>;
>
> // Freeling declarations.
>
> class tokenizer {
> public:
> /// Constructor
> tokenizer(const std::string &);
>
> /// tokenize string with default options
> std::list<word> tokenize(const std::string &);
> /// tokenize string with default options, tracking offset in given int param.
> std::list<word> tokenize(const std::string &, unsigned long &);
> };
------------------------------------------------------------------------------
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user