On 07/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> This is a part of the code :
> --
> extern struct dummy temp[];
> error: array type has in
This is a part of the code :
--
extern struct dummy temp[];
error: array type has incomplete element type
--
which i compiled without any error on :
$gcc -v
Reading specs
[EMAIL PROTECTED] wrote:
What's wrong with this ? It is ok in gcc 3 not not ok with gcc4:
#define SERVICE_TYPE(type, val, state) SERVICE_##type = val,
typedef enum service_e {
SERVICE_TYPE(NONE, 0, false)
SERVICE_TYPE(FTP,1, true)
SERVICE_TYPE_MAX
} service_type_t;
Compi
Hi,
What's wrong with this ? It is ok in gcc 3 not not ok with gcc4:
#define SERVICE_TYPE(type, val, state) SERVICE_##type = val,
typedef enum service_e {
SERVICE_TYPE(NONE, 0, false)
SERVICE_TYPE(FTP,1, true)
SERVICE_TYPE_MAX
} service_type_t;
Thanks
dave