Skip to content

fix build with gcc15 / c23#40

Open
nim65s wants to merge 1 commit intokul-optec:masterfrom
nim65s:gcc15
Open

fix build with gcc15 / c23#40
nim65s wants to merge 1 commit intokul-optec:masterfrom
nim65s:gcc15

Conversation

@nim65s
Copy link

@nim65s nim65s commented Jan 5, 2026

fix:

gcc -g -Wall -Wwrite-strings -funroll-loops -Wstrict-prototypes -I. -Iinclude -fPIC -Ofast -DSVD_ACTIVATED=1 -DCTRLC=1  -DCOPYAMATRIX=1  -DLAPACK_LIB_FOUND -DUSE_LAPACK -c src/unit_test_util.c -o out/obj/unit_test_util.o
In file included from src/unit_test_util.c:36:
include/unit_test_util.h:55:17: error: 'bool' cannot be defined via 'typedef'
   55 |     typedef int bool;
      |                 ^~~~
include/unit_test_util.h:55:17: note: 'bool' is a keyword with '-std=c23' onwards
include/unit_test_util.h:55:5: warning: useless type name in empty declaration
   55 |     typedef int bool;
      |     ^~~~~~~

@nim65s nim65s changed the title fix build with gcc 15 / c23 fix build with gcc15 / c23 Jan 5, 2026
fix:
```
gcc -g -Wall -Wwrite-strings -funroll-loops -Wstrict-prototypes -I. -Iinclude -fPIC -Ofast -DSVD_ACTIVATED=1 -DCTRLC=1  -DCOPYAMATRIX=1  -DLAPACK_LIB_FOUND -DUSE_LAPACK -c src/unit_test_util.c -o out/obj/unit_test_util.o
In file included from src/unit_test_util.c:36:
include/unit_test_util.h:55:17: error: 'bool' cannot be defined via 'typedef'
   55 |     typedef int bool;
      |                 ^~~~
include/unit_test_util.h:55:17: note: 'bool' is a keyword with '-std=c23' onwards
include/unit_test_util.h:55:5: warning: useless type name in empty declaration
   55 |     typedef int bool;
      |     ^~~~~~~
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant