This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__DATE__ and RTX51 Tiny give link errors

This declaration

const char code* const gBuildDate = __DATE__;

gives lots of link errors when I use RTX51 Tiny but is fine without RTX.
(My program uses conditional compilation to build either a RTX or non-RTX version)
Any ideas?

Parents
  • Ok Ive realised whats wrong - I was running out of DATA space.
    If I change the declaration to this

    const char code* code gBuildDate = __DATE__;

    its OK.
    I expected since the pointer was 'const' it would automatically go into code space but apparently not, you have to use 'code'.



Reply
  • Ok Ive realised whats wrong - I was running out of DATA space.
    If I change the declaration to this

    const char code* code gBuildDate = __DATE__;

    its OK.
    I expected since the pointer was 'const' it would automatically go into code space but apparently not, you have to use 'code'.



Children
No data