Ok,
I had some legacy code reimplementing what can now be found in
std_string.i now:
http://cvs.creatis.insa-lyon.fr/viewvc/gdcm/gdcmPython/gdcm.i?view=markup One of them is now incorrect (gdcm::TagName is a typedef to
std::string) with swig 1.3.29:
//%typemap(out) gdcm::TagName, const gdcm::TagName &
//{
// $result = PyString_FromString(($1)->c_str());
//}
//
//// Convertion of incoming Python str to STL string
//%typemap(python, in) const gdcm::TagName, gdcm::TagName
//{
// $1 = PyString_AsString($input);
//}
//
//// Same convertion as above but references (since swig converts C++
//// refererences to pointers)
//%typemap(python, in) gdcm::TagName const &
//{
// $1 = new std::string( PyString_AsString( $input ) );
//}
Simply using:
%include "std_string.i"
now works
-Mathieu
On Mon, May 5, 2008 at 10:44 AM, Mathieu Malaterre
<
mathieu.malaterre@...> wrote:
> Hi there,
>
> Using a newer swig I am now getting this new error message:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "gdcm.py", line 240, in InsertValEntry
> def InsertValEntry(*args): return _gdcm.DocEntrySet_InsertValEntry(*args)
> NotImplementedError: No matching function for overloaded
> 'DocEntrySet_InsertValEntry'
>
>
> If I open the c++ wrap file, I can find the symbol:
>
> static PyMethodDef SwigMethods[] = {
> ...
> { (char *)"DocEntrySet_InsertValEntry",
> _wrap_DocEntrySet_InsertValEntry, METH_VARARGS, NULL},
> ...
> }
>
> and same thing I can find:
>
> SWIGINTERN PyObject *_wrap_DocEntrySet_InsertValEntry(PyObject *self,
> PyObject *args) {
> int argc;
> ...
> }
>
> So I am not sure what the message 'NotImplementedError' means...
>
> Thanks !
>
> --
> Mathieu
>
--
Mathieu
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user