BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is there anyway to use zero element array in a struct in BCB

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Dec 26, 2005 8:19 am    Post subject: Is there anyway to use zero element array in a struct in BCB Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.