On Wed, 28 May 2003, Sam Varshavchik wrote: > > Which translates to line 41 of mail.H: > > > > #define LIBMAIL_THROW_NODEBUG(x) throw x > > > > line 254 (and the others mentioned) look like: > > LIBMAIL_THROW(); > > and > > libmail_config.h has > > #define LIBMAIL_THROW LIBMAIL_THROW_NODEBUG > > Would changing libmail_config.h to > > #define LIBMAIL_THROW(x) LIBMAIL_THROW_NODEBUG(x) > > ... make gcc shut up, now?
No. The error is that the macro requires an argument to be sent to it, and it's being used without an argument. At this time I'm not aware of any reasonable solution. Consider instead changing mail.H's definition to: #define LIBMAIL_THROW_NODEBUG(x...) throw x This appears to work. > > Manually (temporarily) changing each of the macros to just 'throw' > > allows a bit more, but /then/ I get (in libmail): > > > > In file included from mail.H:36, > > from mail.C:7: > > objectmonitor.H:93: `mail' does not have a nested type named `obj' > > Change this line from "class mail::obj" to "class obj". And I get: In file included from mail.C:8: sync.H:208: invalid base class sync.H: In method `mail::ACCOUNT::FolderList::iterator::iterator(mail::folder **)': sync.H:213: `mail::folder **' is not an aggregate type sync.H: In method `const class mail::folder * mail::ACCOUNT::FolderList::iterator::operator *()': sync.H:220: `mail::folder **' is not an aggregate type sync.H:221: warning: control reaches end of non-void function `mail::ACCOUNT::FolderList::iterator::operator *()' sync.H: In method `const class mail::folder *const * mail::ACCOUNT::FolderList::iterator::operator ->()': sync.H:225: `mail::folder **' is not an aggregate type sync.H:226: warning: control reaches end of non-void function `mail::ACCOUNT::FolderList::iterator::operator ->()' -- Feast your Vulcan squinties on that! Jon Nelson <[EMAIL PROTECTED]> C and Python Code Gardener ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
