Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: