C
cppsks
I have been working on making a constant array available for the clients.
However, it is placing it in the text segment, and external references
result in unresolved references to the array. Taking the const off the
definition solves the problem (the variable is placed in the data segment).
Is this how const globals are supposed to work, or did the linker screw up?
Thanks.
However, it is placing it in the text segment, and external references
result in unresolved references to the array. Taking the const off the
definition solves the problem (the variable is placed in the data segment).
Is this how const globals are supposed to work, or did the linker screw up?
Thanks.