 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Mon Dec 26, 2005 8:19 am Post subject: Is there anyway to use zero element array in a struct in BCB |
|
|
Hi,group!
I got one problem:When porting a c program from VC to BCB, I always
get compling error for the following struct in BCB5 while it is fine in
VC6:
struct tmp
{
ushort usTst0;
char cArray[0];
}
error number: E2021 as "Array must have at least one element" and
the F1 help from BCB5 suggest that"You must declare the array element
to have (at least) one element if you are compiling in strict ANSI
mode"
So my question is:"Is there anyway have the tmp struct compiled
successfully in BCB compiler?"
I.e, to instruct the compiler to work NOT in strict ANSI mode?
(But I found no options to set this...)
I searched BCB online help and google but got no hint...
Any idea? Any help will be much appreciated!
BR!
Huali |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|