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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
"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
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".
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 >.<