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

Unable to find an entry point named 'DrawTextRec' in shared library 'raylib'. #103

Closed
acheddadi opened this issue Jan 20, 2022 · 7 comments

Comments

@acheddadi
Copy link

As the title says, I am not able to call the function DrawTextRec(). Everything else seems to work fine.

@9ParsonsB
Copy link
Collaborator

What version of Raylib-cs are you using?

@acheddadi
Copy link
Author

What version of Raylib-cs are you using?

Hello, I am using 3.7.0.1.

@9ParsonsB
Copy link
Collaborator

How did you install Raylib-cs and what version of raylib are you using?

@acheddadi
Copy link
Author

acheddadi commented Jan 20, 2022

I installed it via nugget, by using the command dotnet add package Raylib-cs --version 3.7.0.1

Although I suspect that the project may be referring to my local shared library which I also have on my machine. I'm not quite sure how to force dotnet to use the supplied nuget package rather than a shared library.

@chrisdill
Copy link
Owner

@acheddadi DrawTextRec is available in raylib 3.7 but removed in 4.0. What version is the shared library on your machine?

@acheddadi
Copy link
Author

@acheddadi DrawTextRec is available in raylib 3.7 but removed in 4.0. What version is the shared library on your machine?

Ah, that would explain it. The shared library I have on my machine is 4.0. Is there a way for me to specify that dotnet should only use the supplied DLL and not the shared library?

@9ParsonsB
Copy link
Collaborator

9ParsonsB commented Jan 21, 2022

You can try setting LD_LIBRARY_PATH or LD_PRELOAD environment variables, but this is a known issue with dotnet on Linux: see dotnet/runtime#34711 & https://github.com/ChrisDill/Raylib-cs-Examples/issues/14

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