Code Monkey home page Code Monkey logo

Comments (7)

GuillemRamisa avatar GuillemRamisa commented on July 4, 2024 4

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.

alexlnkp avatar alexlnkp commented on July 4, 2024 1

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

Can confirm, works like a charm! Raylib from pkgmanager, versions of raygui and raylib are the same as yours. Thank you :)

from raygui.

emrekz avatar emrekz commented on July 4, 2024

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.

sprinkuls avatar sprinkuls commented on July 4, 2024

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.

Justaus3r avatar Justaus3r commented on July 4, 2024

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.

komatr-supra avatar komatr-supra commented on July 4, 2024

so last raylib and last raygui isnt working....

from raygui.

komatr-supra avatar komatr-supra commented on July 4, 2024

its working with vcpkg.

from raygui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.