Skip to content

is there something wrong with the Charinfo in raygui.h? #1938

Answered by orcmid
AnasAyadKamal asked this question in Q&A
Discussion options

You must be logged in to vote

It's a guess, not a suggestion.

The thing to do is find line 2891 in raygui.h and tease out what's happening there. It turns out that CharInfo is a struct type that is only defined if RAYGUI_STANDALONE is set. (Found by searching raygui.h for CharInfo occurrences.)

I suspect that if you are not using raygui.h as a standalone (and providing some additional functions yourself), you need to provide #include "raylib.h" ahead of any #include "raygui.h or #include "extras/raylib.h" depending on your setup for includes.

My money is on CharInfo being defined in raylib.h and I just lost that bet. There is no CharInfo defined or used in raylib.h , although there are a variety of *Info thingies, inc…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by AnasAyadKamal
Comment options

You must be logged in to vote
2 replies
@AnasAyadKamal
Comment options

@orcmid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants