Menu

libcob: error: user-defined FUNCTION 'FAMPM' not found

GnuCOBOL
2023-07-12
2023-07-13
  • Joe Reichart

    Joe Reichart - 2023-07-12

    With some free time I wanted to play around with UDFs to get a feel for them.
    In this case I am compiling to the directory I am working in.
    Compiles with no error/warnings.
    Also compiled and ran with the environment settings.
    Version 3.1.2.
    What am I missing?
    No issues with finding dynamic subprograms.
    Works fine when I change to a subprogram.
    Many thanks.

     

    Last edit: Joe Reichart 2023-07-12
    • Simon Sobisch

      Simon Sobisch - 2023-07-12

      So what does your FUNCTION-ID look like?
      How did you compile its source?

       
  • Joe Reichart

    Joe Reichart - 2023-07-12

    FUNCTION-ID. fampm.
    cobc ./fampm.cob (compile everything this way)
    source below..

     

    Last edit: Joe Reichart 2023-07-12
    • Simon Sobisch

      Simon Sobisch - 2023-07-13

      try with

      cobc -o FAMPN.so fampm.cob
      

      background: functions are always loaded in uppercase.

       
  • Joe Reichart

    Joe Reichart - 2023-07-13

    LOL! Never thought of that! Thanks.
    May want to change udf-sample. in the FAQ.

     
    👍
    1

Log in to post a comment.