Menu

Help libcurl!

2022-04-11
2022-04-12
  • Husni Ali Husni

    Husni Ali Husni - 2022-04-11

    Hi!

    I'm trying to make a program to use libcurl, however, I needed to know whether to compile the libcurl library according to the cobol version I'm using or if I can get any version.

    I'm using this version of opencobol:
    C:\CobolPgm\bin>cobcrun --info
    libcob (GnuCOBOL) 3.1.2.0
    Copyright (C) 2020 Free Software Foundation, Inc.
    License LGPLv3+: GNU LGPL version 3 or later http://gnu.org/licenses/lgpl.html
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart
    Built Dec 26 2020 17:28:18
    Packaged Dec 23 2020 12:04:58 UTC

    build information
    build environment : i686-pc-mingw32
    CC : gcc
    C version : (MinGW) "6.3.0"
    CPPFLAGS : -DCHTYPE_64 -DPDC_DLL_BUILD -Dinitscr=initscr_x64
    -I/mingw/include
    CFLAGS : -O2 -pipe -finline-functions -fsigned-char -Wall
    -Wwrite-strings -Wmissing-prototypes
    -Wno-format-y2k
    LD : c:/mingw/mingw32/bin/ld.exe
    LDFLAGS:

    GnuCOBOL information
    COB_MODULE_EXT : dll
    dynamic loading : system
    64bit-mode: no
    BINARY-C-LONG : 4 bytes
    endianness : little-endian
    native EBCDIC : no
    variable file format : 0
    sequential file handler : built-in
    indexed file handler : VBISAM
    mathematical library : GMP, version 6.2.0
    XML library : disabled
    JSON library : cJSON, version 1.7.12
    extended screen I/O : pdcurses, version 4.2.0 (CHTYPE=64, WIDE=0, UTF8=0)
    mouse support : unknown

    In advance, Thank you very much!

    Att. Husni Ali Husni

     
    • Brian Tiffin

      Brian Tiffin - 2022-04-12

      If I understand the question, any version of a libcurl dll will work from CALL, as long as the link loader is told to look during compile time and can find it at run-time. Assuming the call frame signatures match between CALL and the actual libcurl entry.

      Cheers,
      Blue

       
  • Simon Sobisch

    Simon Sobisch - 2022-04-12

    And the possibly best way to check that is to use CALL STATIC "curlfunc" USING ... together with -Q X:\Path\to\libcurl.dll.

     
  • Husni Ali Husni

    Husni Ali Husni - 2022-04-12

    I was following the example in the manual, but it wasn't working.

    Brian!
    Testing here, you can really use any version of libcurl

    Simon!
    After implementing your tips the access to libcurl worked.

    Thank you all.

    Sorry for my english, because I'm using Google translator

     

Anonymous
Anonymous

Add attachments
Cancel