SanderMertens / flecs

A fast entity component system (ECS) for C & C++

Home Page:https://www.flecs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conflict with "json_?" and other libraries

hbiblia opened this issue · comments

Bug or Problem:

I was trying to add a JSON library and it name conflicts with flecs functions to work with JSON.

multiple definition of `json_number';  ..ThirdParty/flecs/flecs.c.obj:flecs.c:(.text+0x52eb1): first defined here
multiple definition of `json_string';  ..ThirdParty/flecs/flecs.c.obj:flecs.c:(.text+0x52eb1): first defined here

I propose changing these functions to "ecs_json_" as suggested by user @randy on discord or "json_flecs_" "jsonf_".

Fixed!