have u tried changing the first field of each element?? something like... replacing those char ptrs with something static?
example:
DATUM recip_data[] = {
{ "i am a constant str", NAMECTRL_LEN, make_upper }, { "i am a constant str", NAME1_LEN, make_upper },
u might notice that some of "initializer element is not constant" errors will be significantly reduced....
perhaps, the compiler is complaining that u have used something "dynamic"(or at least non-static) in defining a
"statically" allocated data structure(recip_data)
=(
perhaps u can change the way u define/declare ur variables/data structures....
Scott wrote:
On Fri, Jan 21, 2005 at 10:37:12AM +0800, Ron Michael Khu wrote:
Hi,
can u point us to line 124??
DATUM recip_data[] = {
{ namectrl, NAMECTRL_LEN, make_upper }, <-- Line 124
{ name1, NAME1_LEN, make_upper },
- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
