Remix.run Logo
jovial_cavalier 4 days ago

The example code doesn't seem to compile.

seanwessmith 4 days ago | parent | next [-]

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 3 days ago | parent [-]

Yes, I made the header. I'm on x86-64.

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.

4 days ago | parent | prev [-]
[deleted]