From: Mark G. <ma...@go...> - 2008-05-08 09:35:01
|
Hello, When I was running my Python 3 test suite, I found many compiling errors like this: li_std_set_wrap.cxx:9363: error: ?LANGUAGE_OBJ? is not a member of ?swig? I searched all the SWIG's codebase and only found some words in Examples/test-suite/li_std_map.i saying: ... * @brief a test of map containers. * Languages should define swig::LANGUAGE_OBJ to be * an entity of their native pointer type which can be * included in a STL container. * * For example: * swig::LANGUAGE_OBJ is GC_VALUE in Ruby * swig::LANGUAGE_OBJ is PyObject_ptr in python ... But I can't find the LANGUAGE_OBJ defined anywhere. Could you tell me how to define it? Thank you! Best regards, Haoyu Bai 5/6/2008 Hello Haoyu Bai, I seem to remember it appearing SWIG about a year or so ago. At the time I had issues with it and raised them. In the end the Lua code fixed it with the following stub. #ifdef __cplusplus %ignore swig::LANGUAGE_OBJ; %{ namespace swig { typedef struct{} LANGUAGE_OBJ; } %} #endif // __cplusplus Hope this helps. Regards, Mark --------------------------------- Sent from Yahoo! Mail. A Smarter Email. |