9 ms·
Make sure the create the segment_array.h file. Mine outputted just fine on Mac M4 Desktop gcc main.c Desktop ./a.out entities[0].a = 1 entities[0
by seanwessmith 1y ago
Make sure the create the segment_array.h file. Mine outputted just fine on Mac M4
Desktop gcc main.c
Desktop ./a.out
entities[0].a = 1
entities[0].a = 1
entities[1].a = 2
- jovial_cavalier 1y agoYes, I made the header. I'm on x86-64. https://gist.github.com/fpf3/71c72e224e1c82d9a5d37be621def426 https://gist.github.com/fpf3/71c72e224e1c82d9a5d37be621def42... The errors make sense. You can't put a comma-separated initializer into a macro... What even is the symbol `entity`? It's not even clear to me what is meant by that, he doesn't define it anywhere. edit: Looks like he updated his header since I first tried to compile. Now it works fine but the header looks significantly more complicated.