SanderMertens / ecs_solar

Demo of rendering hierarchically organized entities
5 stars 3 forks source link

Fails to compile on Arch Linux: error: ‘EOrbit’ undeclared #1

Closed Joaqim closed 5 years ago

Joaqim commented 5 years ago

./src/main.c: In function ‘create_planet’: /home/jq/bake/include/flecs.h:1963:26:error: ‘EEOrbit’ undeclared (first use in this function); did you mean ‘EOrbit’? #define ecs_entity(type) E##type Specifically this line in main.c:create_planets: ecs_set(world, p, Orbit, {orbit_radius, t, .v = speed});

and in main.c:InitOrbit: ecs_entity_t parent = ecs_get_parent(rows->world, rows->entities[0], EOrbit);

./src/main.c: In function ‘InitOrbit’: /home/jq/bake/include/flecs.h:1963:26: error: ‘EEOrbit’ undeclared (first use in this function); did you mean ‘EOrbit’? #define ecs_entity(type) E##type

Pastebin Log

SanderMertens commented 5 years ago

Nice catch! Just checked in a fix, it should work again now.

Joaqim commented 5 years ago

Trying to close Issue as solved : S

Joaqim commented 5 years ago

Feel free to delete this Issue now that it is resolved ^ ^, sorry for the mess.