Both compile successfully giving hellow.exe & hello.dll (using -x & -m options for cobc) in c:\ gnucobol.
When I execute hellow.exe from \gnucobol I get:
calling hello
libcob: error: entry point 'hello' not found
What have I not done or done wrong?
I installed gnucobol using Arnold Trembley's process for Windows with ISAM.
Last edit: Simon Sobisch 2021-07-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As David pointed out: either use PROGRAM-ID and CALL or FUNCTION-ID and use a function (note: in the later case: ensure that you either COB_PRE_LOAD the dll or have it all upper-case).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I created a program hellow.cob:
and a subroutine hello.cob:
Both compile successfully giving hellow.exe & hello.dll (using
-x&-moptions for cobc) in c:\ gnucobol.When I execute hellow.exe from \gnucobol I get:
What have I not done or done wrong?
I installed gnucobol using Arnold Trembley's process for Windows with ISAM.
Last edit: Simon Sobisch 2021-07-26
What's the FUNCTION-ID. hello. in the .dll - shouldn't that be Program-id. hello. ??.
As David pointed out: either use
PROGRAM-IDandCALLorFUNCTION-IDand use a function (note: in the later case: ensure that you eitherCOB_PRE_LOADthe dll or have it all upper-case).