P6011¶
- Code
P6011
- Message
Referenced compatibility library not found
This error occurs when a compatibility library is activated by name — either
explicitly with --library <name> or by a project file reference — but no
library of that exact name can be found.
Library names are matched strictly and case-sensitively, so that the compiler
never silently binds the wrong library. The diagnostic names the missing
library so that any resulting undefined symbol errors are explained.
Example¶
# No library named "Tc2_Maths" exists (note the trailing 's')
ironplcc check --library Tc2_Maths main.st
To fix this error:
Check the spelling and capitalization of the library name.
Confirm the library is installed where the compiler looks for libraries.
Remove the activation if the library is not required.
Think IronPLC is wrong about this?
If you believe this diagnostic is incorrect, open an issue on GitHub with a small sample that demonstrates the problem.