|
From: bob f. <chi...@ma...> - 2003-07-02 16:07:45
|
Hi,
Sorry I didn't get back to you sooner. Did you solve this? I'm
totally swamped catching up from last week. If you're still having
problems, I'll have some time to help you out later next week.
Please keep me posted on any progress you make along these lines.
Thanks,
Bob
On Wednesday, June 25, 2003, at 11:00 PM, Michael Tsai wrote:
> Hi,
>
> Is there some kind of hidden setting in the project file to turn off
> newer compiler features? I started adding the variadic macro stuff,
> but it isn't letting me use the new feature where ,## lets you have
> zero arguments for the format string. So this:
>
> log4Debug(@"Set Log Level to Debug for Log message test.");
>
> is telling me that I'm missing an argument, with log4Debug defined as:
>
> #define log4Debug(message, args...) // etc.
>
> It doesn't like other newer GCC features like the ?: operator, which I
> used in this code from L4SimpleLayout that I was speeding up:
>
> - (NSString *) format: (L4LoggingEvent *) anEvent
> {
> return [NSString stringWithFormat:@"%@ - %ld %@:%@) %@ - %@",
> [[anEvent level] stringValue],
> [anEvent millisSinceStart],
> // [anEvent fileName] ?: @"",
> [anEvent fileName] ? [anEvent fileName] : @"",
> // [[anEvent lineNumber] stringValue] ?: @"",
> [anEvent lineNumber] ? [[anEvent lineNumber] stringValue]: @"",
> // [anEvent methodName] ?: @"";
> [anEvent methodName] ? [anEvent methodName] : @"",
> [anEvent renderedMessage]];
> }
>
> When I added the same files to one of my other projects, they compiled
> fine. As far as I can tell, the settings in Project Builder that would
> matter are the same, but I must be missing something.
>
> --Michael
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting
> Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Log4cocoa-development mailing list
> Log...@li...
> https://lists.sourceforge.net/lists/listinfo/log4cocoa-development
>
---
Bob Frank
bo...@ap...
(312) 902 - 7393
|