iODBC icon indicating copy to clipboard operation
iODBC copied to clipboard

Build failure with GCC 15

Open orlitzky opened this issue 8 months ago • 1 comments

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.

orlitzky avatar May 07 '25 03:05 orlitzky

Development is investigating this issue.

pkleef avatar Oct 16 '25 15:10 pkleef