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

undefined reference to `DrawRectangleT' #2

Closed
axelbsa opened this issue Aug 14, 2017 · 2 comments
Closed

undefined reference to `DrawRectangleT' #2

axelbsa opened this issue Aug 14, 2017 · 2 comments

Comments

@axelbsa
Copy link

axelbsa commented Aug 14, 2017

Having issues compiling rGuiStyler on linux as there is a missing reference to DrawRectangleT using the latest stable version of raylib (1.7.0)

INFO: Initializing raylib (v1.7.0)

/tmp/ccLbFxB1.o: In function `DrawRectangleRecT':
rguistyler.c:(.text+0x3a): undefined reference to `DrawRectangleT'

Looking at the source i see the following implementation of:
static void DrawRectangleRecT(Rectangle rec, Color color) { DrawRectangleT(rec.x, rec.y, rec.width, rec.height, color); }

But there is no implementation of DrawRectangleT anywhere in raygui or raylib.
Am i doing somthing wrong or is raygui experimental?

PS: compilation options
gcc -o test rguistyler.c external/tinyfiledialogs.c -lraylib -lglfw3 -lX11 -lXxf86vm -lXrandr -ldl -lXinerama -lXcursor -lGL -lGLU -lpthread -lm -std=c99 -Wall

Sincerly Axel Sanner

@raysan5
Copy link
Owner

raysan5 commented Aug 16, 2017

Hi @axelbsa, just added this function in raylib develop branch, it should be stable.
To use it with current raylib 1.7 you can just rename functions to DrawRectangle and DrawRectangleRec

@axelbsa
Copy link
Author

axelbsa commented Aug 17, 2017

I see, thank you for answering so quickly. I will try to recompile raylib from develop or recompile raygui with the older DrawRectangle function.

Of course feel free to close the task at your at your discretion.

Sincerly Axel Sanner

@raysan5 raysan5 closed this as completed Nov 2, 2017
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

2 participants