Hi gurus,

I have a small prob. I wrote a c++ code that had these lines in this order.

...
...
 number_of_recs = a/2;
 char * recBuf[number_of_recs];
...
...

and the program compiled and ran after compilation with gcc. But my NT
counterpart who is porting my apps couldn't compile it using their compiler
unless he made it a vector instead of an array.

The C++ reference by Stroustrup also prohibits such an assignment. Can someone
please explain why gcc allows it.

TIA

Parthi


PS. Please cc to me as I'm not in the list. THX.



----------------------------------
E-Mail: [EMAIL PROTECTED]
Date: 20-Dec-99
Time: 14:20:36

This message was sent by XFMail
----------------------------------

Reply via email to