iODBC
iODBC copied to clipboard
Build failure with GCC 15
GCC 15 is out, and it defaults to C23. This is causing a build failure:
hstmt.c: In function 'SQLAllocStmt_Internal':
hstmt.c:234:48: error: too many arguments to function 'hproc3'
234 | CALL_DRIVER (pstmt->hdbc, pdbc, retcode, hproc3,
| ^~~~~~
(and others like it). This is most likely due to int foo() being changed in C23 to mean that foo takes zero arguments rather than an unknown/undefined number of arguments.
In any case, a temporary workaround is to build with -std=c17.
Development is investigating this issue.