On Mon, 10 Nov 2003 12:04:13 +1000 (EST) Mark Livingstone <[EMAIL PROTECTED]> wrote:
ML> OK, here are the errors I am currently working on. The MailFolder.i and ML> MProfile.i errors are suimply saying there is not a function by that name in ML> the source any more. Can someone tell me if there are any equivalents (even if ML> the API is now changed). In general, I continue to think that it would be better to parse the .h files directly instead of fixing the .i ones btu you already know that... ML> For MAppBase.i, I am not sure if these are SWIG related errors or just valid ML> C++ errors that have not been noticed since nobody for years has been ML> compiling in Python support. Can anyone tell me or just fix them? The declarations in MAppBase.i are wrong, they should be the same as in gui/wxMDialog.h. ML> MailFolder.i ML> ML> /usr/bin/swig -I.src/Python/ -c++ -python -shadow -c -o Python/MailFolder.cpp .src/Python/MailFolder.i ML> c++ -o Python/MailFolder.o -c -I/home/markl/projects/M/build/include -I/home/markl/projects/M/include -I/usr/local/include/python2.3 -DNO_IDEA -DNO_DSA -DOPENSSL_NO_KRB5 -DDEBUG -DDEBUG_markl -I/usr/local/lib/wx/include/gtkd-2.5 -D__WXDEBUG__ -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/markl/projects/M/extra/include -I/home/markl/projects/M/build/extra/src/c-client -I/home/markl/projects/M/extra/src/compface -I/home/markl/projects/M/src/wx/vcard -fno-exceptions -fno-rtti -fno-operator-names -g3 -O0 -MMD -Wall Python/MailFolder.cpp ML> In function `PyObject* _wrap_MailFolder_CreateFolder(PyObject*, PyObject*)': ML> 773: no method `MailFolder::CreateFolder' This one should be removed. ML> In function `PyObject* _wrap_MailFolder_ConvertMessageStatusToString(PyObject*, PyObject*)': ML> 811: no method `MailFolder::ConvertMessageStatusToString' There is an equivalent for this one, but for now remove it too, I don't think it is useful. In general, keep the interface as simple as possible, if we're going to have to maintain the .i files, less things there are in them, less chances for them to break. ML> In function `PyObject* _wrap_MailFolder_SetSequenceFlag(PyObject*, PyObject*)': ML> 1123: no matching function for call to `MailFolder::SetSequenceFlag(const wxString&, int&, bool&)' ML> /home/markl/projects/M/include/MailFolder.h:619: candidates are: virtual bool MailFolder::SetSequenceFlag(MailFolder::SequenceKind, const Sequence&, int, bool = true) ML> /home/markl/projects/M/include/MailFolder.h:623: bool MailFolder::SetSequenceFlag(const Sequence&, int, bool = true) You need to wrap the Sequence class (include/Sequence.h) to implement this function. ML> Python/MailFolder.cpp: In function `PyObject* _wrap_FolderListingEntry_GetName(PyObject*, PyObject*)': ML> Python/MailFolder.cpp:1767: `FolderListingEntry' undeclared (first use this function) Try to get rid of this one too... ML> /usr/bin/swig -I.src/Python/ -c++ -python -shadow -c -o Python/MAppBase.cpp .src/Python/MAppBase.i ML> c++ -o Python/MAppBase.o -c -I/home/markl/projects/M/build/include -I/home/markl/projects/M/include -I/usr/local/include/python2.3 -DNO_IDEA -DNO_DSA -DOPENSSL_NO_KRB5 -DDEBUG -DDEBUG_markl -I/usr/local/lib/wx/include/gtkd-2.5 -D__WXDEBUG__ -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/markl/projects/M/extra/include -I/home/markl/projects/M/build/extra/src/c-client -I/home/markl/projects/M/extra/src/compface -I/home/markl/projects/M/src/wx/vcard -fno-exceptions -fno-rtti -fno-operator-names -g3 -O0 -MMD -Wall Python/MAppBase.cpp ML> Python/MAppBase.cpp: In function `PyObject* _wrap_MDialog_FileRequester(PyObject*, PyObject*)': ML> Python/MAppBase.cpp:957: conversion from `const wxString' to `String&' discards qualifiers ML> Python/MAppBase.cpp:959: conversion from `const wxString' to `String&' discards qualifiers ML> Python/MAppBase.cpp:961: conversion from `const wxString' to `String&' discards qualifiers ML> Python/MAppBase.cpp:963: conversion from `const wxString' to `String&' discards qualifiers ML> Python/MAppBase.cpp:1016: invalid conversion from `const wxChar*' to `char*' ML> make[1]: *** [Python/MAppBase.o] Error 1 See above. ML> MProfile.i ML> ML> c++ -o Python/MProfile.o -c -I/home/markl/projects/M/build/include -I/home/markl/projects/M/include -I/usr/local/include/python2.3 -DNO_IDEA -DNO_DSA -DOPENSSL_NO_KRB5 -DDEBUG -DDEBUG_markl -I/usr/local/lib/wx/include/gtkd-2.5 -D__WXDEBUG__ -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/markl/projects/M/extra/include -I/home/markl/projects/M/build/extra/src/c-client -I/home/markl/projects/M/extra/src/compface -I/home/markl/projects/M/src/wx/vcard -fno-exceptions -fno-rtti -fno-operator-names -g3 -O0 -MMD -Wall Python/MProfile.cpp ML> Python/MProfile.cpp: In function `PyObject* _wrap_Profile_SetPath(PyObject*, PyObject*)': ML> Python/MProfile.cpp:851: no matching function for call to `Profile::SetPath(wxString&)' Doesn't exist any more, shouldn't be needed. Regards, VZ ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
