abhyudyagarg
abhyudyagarg

Reputation: 1

Error: call to undeclared function 'EXTSM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

We are migrating our application from HP-UX to LINUX and some of the c codes are using EXTSM function for sorting, but the application uses COBOL code with GNU COBOL. So, on compiling we are getting undeclared function error. How to replace this function in c code.

error: call to undeclared function 'EXTSM'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] EXTSM(func_cod, fcd);

We checked in the link provided below, maybe we need to use SORT instead.

https://bigdanzblog.wordpress.com/2020/11/09/cobol-sort-module-in-gnucobol/

Upvotes: 0

Views: 20820

Answers (1)

Simon Sobisch
Simon Sobisch

Reputation: 7297

EXTSM is an external COBOL SORT handler, which is available in some implementations as well as in external "products".

GnuCOBOL has no published release that provides that, if you use GnuCOBOL 3.1.2+ and are fine with patching this then you could include a work-in-progress that should already work in "most cases".
The best start would then be a current GnuCOBOL 3.2 snapshot (considered stable).

Otherwise you could replace the CALL 'EXTSM' by COBOL SORT statement, as you've recognized.

Upvotes: 0

Related Questions