https://github.com/SanderMertens/flecs/blob/master/flecs.hhttps://github.com/SanderMertens/flecs/blob/master/flecs.c
test.d:
import flecs;
$ dmd test.d
flecs.c(2484): Error: expression expected, not `{`
flecs.c(2484): Error: found `if` when expecting `)`
flecs.c(2484): Error: found `;` when expecting `)`
flecs.c(2484): Error: found `else` when expecting `;` following statement
flecs.c(2484): Error: no type for declarator before `)`
flecs.c(2485): Error: no type for declarator before `if`
flecs.c(2487): Error: no type for declarator before `}`
flecs.c(2495): Error: no type for declarator before `if`
flecs.c(2497): Error: no type for declarator before `return`
flecs.c(2498): Error: no type for declarator before `}`
flecs.c(2500): Error: no type-specifier for declarator
flecs.c(2506): Error: no type for declarator before `for`
flecs.c(2506): Error: no type for declarator before `(`
flecs.c(2506): Error: no type for declarator before `)`
flecs.c(2510): Error: no type for declarator before `if`
flecs.c(2512): Error: no type-specifier for declarator
flecs.c(2513): Error: no type for declarator before `}`
flecs.c(2513): Error: no type for declarator before `else`
flecs.c(2515): Error: no type for declarator before `}`
flecs.c(2519): Error: no type for declarator before `if`
Comment #1 by krzysztof.jajesnica — 2023-01-12T11:55:01Z
The error messages appear to be caused by the use of ecs_assert macro, which uses assert internally.
Currently ImportC fails to compile the GLibC implementation of assert.
See this issue for more information: https://issues.dlang.org/show_bug.cgi?id=23509
Comment #2 by bugzilla — 2023-04-09T07:18:48Z
*** This issue has been marked as a duplicate of issue 23509 ***