[ sorry for the top post, Lyris list manager keeps refusing my bottom post ]

Ben,

I just tried the #pragma c99 on and also the Enable C99 extensions, but
CW still complains about
local variables not declared at the beginning of blocks.

Error   : expression syntax error
cmdproblem.c line 175    int status;

But "Force C++ compilation" works.

I guess the anywhere-local-vars currently is not supported by CW C compiler.

Vu

----- Original Message ----- 
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 2:35 PM
Subject: Re: Palm Development General Question


> At 12:10 PM 3/31/2004, you wrote:
> >Just want to clarify a little bit : C99 allows to declare local variables
> >anywhere. CW compiler just does not support this.
>
> Sure it does... just use "#pragma c9x on" or turn on the "Enable C99
> Extensions" switch in the C/C++ Language panel.  The CW for Palm OS V9
> compiler isn't C99 by default, but it can be configured to support most of
> the C99 standard.
>
>
> -- Ben Combee, senior DTS engineer, PalmSource, Inc.
>     Read "Combee on Palm OS" at http://palmos.combee.net/
>
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to