[Migrated content. Thread originally posted on 23 April 2008]
How do I call a C routine in Linux from inside the Cobol program?COBOL program:
CALL "timerapi.o" USING BY VALUE 20.
C routine:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
int timerapi ( unsigned int msecs )
{
int waitms;
waitms = msecs * 10000;
usleep( waitms );
return(0);
}
The error log says timerapi is not a COBOL program
What did I do wrong here?
Thanks



