You have specified the
ILGEN compiler directive to compile a native application, or you have specified DB2 compiler directive options to compile a managed
code application. DB2 is supported for native applications only.
Resolution:
Recompile using compiler directives appropriate to your application type.