- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My application involves two separate status registry blocks one of them is working perfectly, I cant manage to make the other one work I keep getting the error:
undefined reference as if it was not declared at all.
I compared both Stat.Reg files and noticed the one that gives the error is greyed out after the if #if !defined( block
not sure what can be done about this
the build report says I still have one more status registry free to use.
the only command I am using is Read();
thanks for the help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a message right before the error. "Unused parts have been optimized out..." This is exactly what has happened: yout LUTb does not deliver different values, so it has been optimized out, leaving the status register without any input. So the status register "EndsReg" was optimized-out too. Fill some values into LUTb and all is well.
Bob