Comments (7)
I had the same issue, but I just put the function from raygui.h
static float TextToFloat(const char *text)
{
...
}
before this function, which is the one screaming
int GuiValueBoxFloat()
And now I can compile without any errors. I'm using raylib/5.0.0
and the latest raygui/4.1-dev
from raygui.
I had the same issue, but I just put the function from
raygui.h
static float TextToFloat(const char *text) { ... }before this function, which is the one screaming
int GuiValueBoxFloat()And now I can compile without any errors. I'm using
raylib/5.0.0
and the latestraygui/4.1-dev
Can confirm, works like a charm! Raylib from pkgmanager, versions of raygui and raylib are the same as yours. Thank you :)
from raygui.
The following function can be moved from raygui.h
to raylib.h
// in raygui.h
static float TextToFloat(const char *text)
raylib.h
has similar functions but doesn't include the TextToFloat(const char *text)
// in raylib.h
RLAPI const char *TextToPascal(const char *text); // Get Pascal case notation version of provided string
RLAPI int TextToInteger(const char *text); // Get integer value from text (negative values not supported)
.
.
from raygui.
i had this same issue, and it's caused by a mismatch in the version of raygui and raylib. basically, if you're using the 5.0.1 version of raylib (which is what you'd get from either the releases page or from a package manager), and then try to use the most recent raygui from this repo, you'll get errors since raygui ends up relying on raylib features that aren't yet in the newest released version (like texttofloat). to fix this you can either build raylib from source as described in the raylib wiki, and continue to use the newest possible raygui, or you can use the 5.0.1 version of raylib with something like the 4.0 release of raygui.
from raygui.
i had this same issue, and it's caused by a mismatch in the version of raygui and raylib. basically, if you're using the 5.0.1 version of raylib (which is what you'd get from either the releases page or from a package manager), and then try to use the most recent raygui from this repo, you'll get errors since raygui ends up relying on raylib features that aren't yet in the newest released version (like texttofloat). to fix this you can either build raylib from source as described in the raylib wiki, and continue to use the newest possible raygui, or you can use the 5.0.1 version of raylib with something like the 4.0 release of raygui.
Thank you. I did try to build raylib from source and then use the latest version of raygui with it. But the personally built version also didn't work with raygui for me and it kept giving me the same error. In the end I just ditched raygui and ended up going with raylib only for my semester project
from raygui.
so last raylib and last raygui isnt working....
from raygui.
its working with vcpkg.
from raygui.
Related Issues (20)
- Multiple `GuiTextInputBox()` not supported HOT 2
- [`rGuiStyler`] Support for substepping font rasterization HOT 3
- examples build issue HOT 1
- `GuiButton()` not considering mouse state as exclusive mode HOT 2
- Dynamic depth management HOT 4
- Input blocking / input event consuming HOT 2
- [Feature Request] Keyboard Navigation HOT 2
- Error - cannot convert bool* to int* HOT 1
- [Feature Request] Accessibility support? HOT 5
- Problem with Installation HOT 1
- Problem when define HOT 2
- Documentation on the `rgs` format HOT 2
- Issue with Unicode input on `GuiTextBox()` HOT 1
- Compile for Rapberry Pi 2B HOT 3
- Raspberry Pi - touch does not works. HOT 3
- Define a consistent convention on controls return values
- missing .c file in src ? HOT 2
- GuiLoadIcons example? HOT 4
- Multiple definitions of raygui functions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raygui.