Going back to your original description, I suspect the problem is that you're trying to link (and then CALL) a C program with a main() function. Try renaming your main() function to something else (like "helloworld"). The name of the C source file is somewhat irrelevant - it's just used by the C compiler to provide a name for the object file that is in turn linked into your final executable or shared library. In your COBOL program you CALL "helloworld", so that should be the name of the C function that gets called.
↧