entry defined: entryname-1 conflicting "main" found in entrypoint-2

You have defined the symbol "main" in a module other than the specified entry point module. If the first program specified to cob when building an executable is a COBOL module, the COBOL system "main" routine is linked in from the COBOL libraries.