Skip to main content

Problem:

After migrating some C code that calls COBOL from UNIX to Windows  get the following errors on linking:-

myprog.OBJ : error LNK2001: unresolved external symbol _cobprintf

myprog.OBJ : error LNK2001: unresolved external symbol _cobgetch

myprog.OBJ : error LNK2001: unresolved external symbol _cobclear

RELEASE\\myprog.exe : fatal error LNK1120: 3 unresolved externals

Resolution:

These routines provided by Micro Focus are only supported on UNIX and are not documented or provided on Windows.

Solution is to replace these calls to standard C library callls such as printf , _getch and system("cls")

Old KB# 1335