gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recommend Practice for EXTFH with shared object loaded with dlopen()


From: Michael Potter
Subject: Recommend Practice for EXTFH with shared object loaded with dlopen()
Date: Fri, 15 Oct 2021 23:34:20 -0400

Gnu Crew,

I compile my cobol program like this:

cobc -o myfile.so -fcallfh=OKEXTFH myfile.cbl

I load it like this:
LibHandle = dlopen("myfile.so", RTLD_LAZY); // Also tested RTLD_NOW.

But I get this error:
undefined symbol: OKEXTFH

What is recommended practice to load a GnuCOBOL .so and fix the External File handler symbol?

I don't like my runtime wasting time resolving symbols so i am going to link in a stub function that I can use to load the OKEXTFH variable but I hoping there might be a better way.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]