Unless the NORENT option has been specified, the ENTRY declaration in the routine that fetches an z/OS C routine must not specify OPTIONS(COBOL) or OPTIONS(ASM)—these should be specified only for COBOL or ASM routines not linked as DLLs
The z/OS C documentation provides instructions on how to compile and link an z/OS C DLL.