HI,
For anyone who is interested, I have now resolved this problem for all put PR5 which I still cannot compile.
BTW these projects are The SK40C Tutorial Projects which you can find at:
http://tutorial.cytron.com.my/2011/08/0 ... -tutorial/ and not the Project DIY ones shown on the Cytron web site. Sorry for any confusion!
The error message [715] can't generate code for this expression - is due to most of the recent Hi-Tech compilers being unable to generate code for so called "complex expressions"..!!!! (see my Code snippets in previous post for examples).
However after a great deal of testing I found that Hi-Tech Compiler V9.70 WILL compile them with no problem. So it would seem that all the later versions of Hi-Tech's compilers all have (in Hi-Tech's words) a "Limitation" (I think they mean a bug!) which they are too lazy to fix..!!!
Their solution..!! - "The expressions should be simplified to work around this. This may require the use of additional variables to store intermediate results. This is most likely with long integer or floating-point arithmetic" - I.E its not their problem any more, it's now ours!
Anyway I will just stick to using V9.70 and save myself all the hassle of re-writing the code!
All the best with your projects - and just remember don't write anything that's too complex

,
Dave (ddkeo)