Hi,
I'm pretty new at C, and I cannot figure this one out. I'm trying to write a PocketC library. I need to call a string array within a function (since I can't access globals in a library, I think). So I called it like this;
char *weekday[7]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"};
Now, when I access a single element, say;
StrCopy(c,weekday[i])
CodeWarrior will give me 7 (the amount of elements) link errors stating:
'@443' has illegal single segment 32-bit reference to '@436'
the next error will say the same but to '@437' and so forth.
Can anyone help me or direct me where I can get help?