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

latest version has problems #157

Closed
ejamshidiasl opened this issue Oct 3, 2021 · 6 comments
Closed

latest version has problems #157

ejamshidiasl opened this issue Oct 3, 2021 · 6 comments

Comments

@ejamshidiasl
Copy link

Hi, i downloaded repo as .zip but there is no raycons.h file in src folder and when i include and use raygui.h i get these errors:
(but replacing raygui.h with latest release (2019) works)

C:\Users\arman\Documents\vsCode\test\req/raygui.h:2398:21: error: 'glyphInfo' was not declared in this scope 2398 | if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX; | ^~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:2431:17: error: 'glyphInfo' was not declared in this scope 2431 | if (glyphInfo.advanceX != 0) glyphWidth += glyphInfo.advanceX; | ^~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h: In function 'void GuiLoadStyle(const char*)': C:\Users\arman\Documents\vsCode\test\req/raygui.h:3420:60: error: 'Font' {aka 'struct Font'} has no member named 'glyphCount' 3420 | if ((font.texture.id > 0) && (font.glyphCount > 0)) GuiSetFont(font); | ^~~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3490:29: error: 'Font' {aka 'struct Font'} has no member named 'glyphCount' 3490 | fread(&font.glyphCount, 1, sizeof(int), rgsFile); | ^~~~~~~~~~ In file included from C:\Users\arman\Documents\vsCode\test\main.cpp:5: C:\Users\arman\Documents\vsCode\test\req/raygui.h:3517:61: error: 'Font' {aka 'struct Font'} has no member named 'glyphCount' 3517 | font.recs = (Rectangle *)RAYGUI_CALLOC(font.glyphCount, sizeof(Rectangle)); | ^~~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:213:44: note: in definition of macro 'RAYGUI_CALLOC' 213 | #define RAYGUI_CALLOC(n,sz) calloc(n,sz) | ^ In file included from C:\Users\arman\Documents\vsCode\test\main.cpp:5: C:\Users\arman\Documents\vsCode\test\req/raygui.h:3518:42: error: 'Font' {aka 'struct Font'} has no member named 'glyphCount' 3518 | for (int i = 0; i < font.glyphCount; i++) fread(&font.recs[i], 1, sizeof(Rectangle), rgsFile); | ^~~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3521:22: error: 'Font' {aka 'struct Font'} has no member named 'glyphs' 3521 | font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo)); | ^~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3521:32: error: 'GlyphInfo' was not declared in this scope 3521 | font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo)); | ^~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3521:43: error: expected primary-expression before ')' token 3521 | font.glyphs = (GlyphInfo *)RAYGUI_CALLOC(font.glyphCount, sizeof(GlyphInfo)); | ^ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3522:42: error: 'Font' {aka 'struct Font'} has no member named 'glyphCount' 3522 | for (int i = 0; i < font.glyphCount; i++) | ^~~~~~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3524:33: error: 'Font' {aka 'struct Font'} has no member named 'glyphs' 3524 | fread(&font.glyphs[i].value, 1, sizeof(int), rgsFile); | ^~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3525:33: error: 'Font' {aka 'struct Font'} has no member named 'glyphs' 3525 | fread(&font.glyphs[i].offsetX, 1, sizeof(int), rgsFile); | ^~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3526:33: error: 'Font' {aka 'struct Font'} has no member named 'glyphs' 3526 | fread(&font.glyphs[i].offsetY, 1, sizeof(int), rgsFile); | ^~~~~~ C:\Users\arman\Documents\vsCode\test\req/raygui.h:3527:33: error: 'Font' {aka 'struct Font'} has no member named 'glyphs' 3527 | fread(&font.glyphs[i].advanceX, 1, sizeof(int), rgsFile);

@raysan5
Copy link
Owner

raysan5 commented Oct 3, 2021

@ejamshidiasl I'm afraid it should be used with latest raylib from github master branch.

@raysan5 raysan5 closed this as completed Oct 3, 2021
@ejamshidiasl
Copy link
Author

i installed raylib from vcpkg (3.7.0#1)

@raysan5
Copy link
Owner

raysan5 commented Oct 4, 2021

@ejamshidiasl I'm afraid that's not latest version from github master branch, it should be 4.0

@nbdy
Copy link

nbdy commented Oct 10, 2021

That's untrue.
grafik
There is no 4.0 tag either.
grafik

@raysan5
Copy link
Owner

raysan5 commented Oct 10, 2021

@nbdy Please, check github master branch, it contains the latest stable version despite not an official release yet (I'm working on it).

@nbdy
Copy link

nbdy commented Oct 10, 2021

Yeah, I misunderstood and revoke my first statement. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants