Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot avoid STB_RECT_PACK_IMPLEMENTATION / STB_TRUETYPE_IMPLEMENTATION #566

Closed
Gargaj opened this issue Jul 14, 2023 · 1 comment · Fixed by #578
Closed

Cannot avoid STB_RECT_PACK_IMPLEMENTATION / STB_TRUETYPE_IMPLEMENTATION #566

Gargaj opened this issue Jul 14, 2023 · 1 comment · Fixed by #578
Labels
Bug Something isn't working

Comments

@Gargaj
Copy link

Gargaj commented Jul 14, 2023

The NK_INCLUDE_FONT_BAKING macro enforces the implementation of the rectpack/truetype libraries:

#ifdef NK_INCLUDE_FONT_BAKING

#define STB_RECT_PACK_IMPLEMENTATION
#define STB_TRUETYPE_IMPLEMENTATION

I have those implemented elsewhere in a project, so this is causing a multiple definition problem.

@Gargaj Gargaj changed the title NK_INCLUDE_FONT_BAKING triggers implementation, is inconsistent Cannot avoid STB_RECT_PACK_IMPLEMENTATION / STB_TRUETYPE_IMPLEMENTATION Jul 14, 2023
@RobLoach RobLoach added the Bug Something isn't working label Oct 6, 2023
@RobLoach
Copy link
Contributor

RobLoach commented Oct 6, 2023

I'm not sure if this would completely fix the problem, as the headers are still included: #578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants