Menu

Error: ‘cob_call_parameters’ undeclared‏

2014-06-25
2018-03-18
  • Klas Furestig

    Klas Furestig - 2014-06-25

    Open cobol 1.0
    Latest version of dbpre, (got it by svn).

    When I compile cobmysqlapi.c, i get:

    [root@fedora20 dbpre-code]# gcc -I/usr/include/mysql -c cobmysqlapi.c

    cobmysqlapi.c: In function ‘MySQL_fetch_row’:
    cobmysqlapi.c:269:19: error: ‘cob_call_parameters’ undeclared (first use in this function)
    maxcols = min(cob_call_parameters - 1, mysql_num_fields(*result)); //121609

    cobmysqlapi.c:332:52: error: ‘cob_module’ has no member named ‘cob_procedure_params’
    cob_field *cf_from_cobol = cob_current_module->cob_procedure_params[j+1]; //121609

     
  • The_Piper

    The_Piper - 2014-07-01

    "Open cobol 1.0"

    That might be the problem.

    I have two versions of GnuCobol with which i tested dbpre:
    cobc (GNU Cobol) 1.1.0
    cobc (GNU Cobol) 2.0.0

    So 1.0 might be a little bit outdated.

    Upgrade to at least GNU Cobol 1.1.0 to fix your problem with dbpre.

    GNU Cobol is available from here:
    https://sourceforge.net/projects/open-cobol/

     

    Last edit: The_Piper 2014-07-01
  • Klas Furestig

    Klas Furestig - 2014-07-02

    I downloaded and installed Gnu Cobol 2.0 but i still get the same error.

    But i managed to compile the cobmysqlapi.c if i changed "cob_call_parameters" to "cob_call_params" and "cob_procedure_params" to "cob_procedure_parameters".

     
  • The_Piper

    The_Piper - 2014-07-02

    Nice, it looks like the cobmysqlapi.c was still the old version.

    I just uploaded one which works with GNU-Cobol 1.1.0 and 2.0.0.

    Thanks for reporting this bug >.<

     
  • Anonymous

    Anonymous - 2014-07-17
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2014-12-30
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2018-03-18
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.