> W dniu 2013-06-10 00:53:12 użytkownik Antonio Todo Bom
> <anto...@boole.com.br> napisał:
> YES !
> But almost that:
>
> const char * const menu_str[][] = ...
>
> const char * const char menu_str[5][2] =...
>
> char identifier was missing, and we need to declare the number of itens or
> will note compile.
>
> And Henry,
> My target device is a PIC18F24K22
>
> Thank you Henry and Marten.
>
> :-) :-)
>
> What is role of second char in your declaration?
>
> Try:
> const char * const float menu_str[5][2] =...
>
> And as Marteen sugest:
> const char * const menu_str[][2] =...
>
> Yes, number in second [] is necessery. Why?
>
> Albert

If SDCC requires the second char then that is a bug.
Even if SDCC accepts the second char it is a bug.

The C standard requires that only the first level of a multi-dimensional
array can have unspecified size. It is not allowed to create an array with
incomplete type elements. Don't ask me why. But I thought that SDCC would
accept multiple unspecified sizes in --std-sdccXX mode with a fully braced
and specified initializer as used here.

Maarten

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to