skeeto / lstack

C11 Lock-free Stack
The Unlicense
180 stars 27 forks source link

lstack.c:36:17: error: member reference base type '_Atomic(struct lstack_head)' is not a structure or union #6

Closed Taymindis closed 7 years ago

Taymindis commented 7 years ago

Hitting Error when compiling with MAC sierra

skeeto commented 7 years ago

What do you have installed for your "cc"? I wonder if this is a bug in your compiler. The program doesn't access any member of a "_Atomic struct lstack_head" in that function, so the error doesn't make sense. However, I apparently forgot to push a fix I made way back in October where I was incorrectly accessing members of _Atomic structs in the init function.

If you pull the latest version do you still get the error?

Taymindis commented 7 years ago

you are right. The latest version had fixed the issue. I all along using your library for my linux machine. Seemed working fine so i never aware of it. Thanks!!