« Return to Thread: Identifying types in the types table.

Identifying types in the types table.

by Guillaume Yziquel-4 :: Rate this Message:

Reply to Author | View in Thread

Hello.

I'm still wrapping my C++ code into OCaml. I'm having an issue with
SWIGTYPES. I was getting this

> Exception: Failure "No appropriate conversion found.".

when executing code from the OCaml toploop. The issue seems to be that
types are handled dynamically, and that the std__basic_stringT_char_t is
declared to be different that the string type. Which it really ought not
to be.

The types table is below. How do I tell swig that these two type are in
fact the same?

> /* -------- TYPES TABLE (BEGIN) -------- */
>
> #define SWIGTYPE_p_listT_word_t swig_types[0]
> #define SWIGTYPE_p_std__basic_stringT_char_t swig_types[1]
> #define SWIGTYPE_p_std__basic_stringT_wchar_t_t swig_types[2]
> #define SWIGTYPE_p_string swig_types[3]
> #define SWIGTYPE_p_tokenizer swig_types[4]
> #define SWIGTYPE_p_unsigned_long swig_types[5]
> #define SWIGTYPE_p_wchar_t swig_types[6]
> static swig_type_info *swig_types[8];
> static swig_module_info swig_module = {swig_types, 7, 0, 0, 0, 0};
> #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
> #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
>
> /* -------- TYPES TABLE (END) -------- */

All the best,

Guillaume Yziquel.

------------------------------------------------------------------------------
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: Identifying types in the types table.