Jon Nelson writes:

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.

I changed how this macro is defined in a somewhat different way, in build 20030528. It probably still won't work, as it is, but you should be able to #define LIBMAIL_NIL, and then use LIBMAIL_NIL as an arg in *.C


> 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

I don't see a problem there. The base class is perfectly valid. I fear that namespace resolution in your gcc is broken. Try to replace all instances of mail::folder with ::mail::folder, in this header file, or with a plain "folder".




-------------------------------------------------------
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

Reply via email to