Skip to main content

Problem:

When compiling, you get the following error message:  

        cob32: can not execute CC

Resolution:

Use the command "which cc" or "which CC" to find out whether there's a "cc" or "CC" command on the path and if found, what directory is it in.  Also try the command "CC -V" or "cc -V" to give you some version information about your C or C compiler (respectively).  If those commands cannot find it, then the "cob" command won't find it either.

It is possible that the system has no C (or C compiler) installed, which would obviously cause the "CC" command to fail

The least likely, but another possible cause, is that the "CC" (or "cc") command is present in a directory specified on PATH, but the user lacks permission to run it.

Old KB# 7163