Re: gcc: why is "abcdef"[3] not a constant (error: initializer element is not constant)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi González,

thanks for the hint with switch/case. I tried it and it fails in my
environment, too.

So it seems not to be recommended to make such a construct, even not with
g++.
A run-time solution for this is not possible for me because some of the
created data sections will not be part of the final code and so cannot be
modified at run-time.

Cheers




--
View this message in context: http://gcc.1065356.n5.nabble.com/gcc-why-is-abcdef-3-not-a-constant-error-initializer-element-is-not-constant-tp1146945p1147794.html
Sent from the gcc - Help mailing list archive at Nabble.com.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux