Open rnikander opened 1 year ago
@llvm/issue-subscribers-clang-modules
Author: None (rnikander)
It's connected with the fact that everything is written to a global module because of ABI and is unlikely to be solved in the nearest future, am I right or not?
It's connected with the fact that everything is written to a global module because of ABI and is unlikely to be solved in the nearest future, am I right or not?
Yeah it looks true.
I am also slightly surprised since it looks like the compiler think struct kevent evt;
is a declaration... I need to check it.
I found this while trying to use the
kqueue
API on macOS, but here is a minimal example that shows the same thing, I think, without needing the include.There seems to a weird situation in C++ where you have to write
struct kevent
instead of justkevent
, in order to declare a variable, because the C library has a struct and function with the same name.minimal.ccm
And in my shell:
This seems like a workaround...