axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <sam...@wso2.com>
Subject Re: Windows build break
Date Tue, 19 Feb 2008 16:11:51 GMT
Samisa Abeysinghe wrote:
> mime_parser.c
> ..\..\axiom\src\attachments\mime_parser.c(118) : error C2057: expected 
> constant expression
> ..\..\axiom\src\attachments\mime_parser.c(118) : error C2466: cannot 
> allocate an array of constant size 0
> ..\..\axiom\src\attachments\mime_parser.c(118) : error C2133: 
> 'buf_array' : unknown size
> ..\..\axiom\src\attachments\mime_parser.c(119) : error C2057: expected 
> constant expression
> ..\..\axiom\src\attachments\mime_parser.c(119) : error C2466: cannot 
> allocate an array of constant size 0
> ..\..\axiom\src\attachments\mime_parser.c(119) : error C2133: 
> 'len_array' : unknown size

I also think that there is a logical error in this code:

axis2_char_t *buf_array[mime_parser->max_chunk_buffers];
    int len_array[mime_parser->max_chunk_buffers];

Should the two arrays be of the size max_chunk_buffers?

And the syntax error is because the static variable is declared with 
variable size. Should use a dynamic allocation.

Samisa...


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message