missing cobdb264 library

I copied MF sample DB2 SQL project: Connect project from Windows to RedHat,  try to recompile it under Linux.

I got this error:

[cobollink] cob64 -g -x -t -oConnect Connect.o /opt/ibm/db2/V11.1/lib64/libdb2.so
[cobollink] Connect.o: In function `CONNECT_MFSQLECM-INIT':
[cobollink] /home/cobol/sql/db2ecm/Connect/Connect.cbl:129: undefined reference to `cobdb264'
[cobollink] collect2: error: ld returned 1 exit status
[cobollink] Link complete with errors

Could someone tell me which library should I link to find cobdb264?

Thanks in advance,

-Jack

Tags:

Parents
  • Thank you. Tony

       [cobol] Compilation complete with no errors.

    [cobollink] Linking (64-bit) Connect...

    [cobollink] cob64 -g -x -t -oConnect Connect.o /opt/ibm/db2/V11.1/lib64/libdb2.so -d cobdb264

    [cobollink] Link complete with no errors

    [cobollink]

    Also  I change it to:

    -L/opt/ibm/db2/V11.1/lib64 -ldb2 -d cobdb264

       [cobol] Compilation complete with no errors.

    [cobollink] Linking (64-bit) Connect...

    [cobollink] cob64 -g -x -t -oConnect Connect.o -L/opt/ibm/db2/V11.1/lib64 -ldb2 -d cobdb264

    [cobollink] Link complete with no errors

    [cobollink]

    From online document :

    documentation.microfocus.com/.../index.jsp

    -d means:

    Dynamically Load Symbol (-d symb)

    Could you tell me which libxxxx.so really need to be loaded at runtime?

    Thank you very much again for further information,

    -Jack

Reply
  • Thank you. Tony

       [cobol] Compilation complete with no errors.

    [cobollink] Linking (64-bit) Connect...

    [cobollink] cob64 -g -x -t -oConnect Connect.o /opt/ibm/db2/V11.1/lib64/libdb2.so -d cobdb264

    [cobollink] Link complete with no errors

    [cobollink]

    Also  I change it to:

    -L/opt/ibm/db2/V11.1/lib64 -ldb2 -d cobdb264

       [cobol] Compilation complete with no errors.

    [cobollink] Linking (64-bit) Connect...

    [cobollink] cob64 -g -x -t -oConnect Connect.o -L/opt/ibm/db2/V11.1/lib64 -ldb2 -d cobdb264

    [cobollink] Link complete with no errors

    [cobollink]

    From online document :

    documentation.microfocus.com/.../index.jsp

    -d means:

    Dynamically Load Symbol (-d symb)

    Could you tell me which libxxxx.so really need to be loaded at runtime?

    Thank you very much again for further information,

    -Jack

Children
No Data