-
Notifications
You must be signed in to change notification settings - Fork 335
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
Build Error C2244 when including RmlUI/Core.h #734
Comments
Hello! Yeah, VS 2017 is quite ancient, although we still have some minimal testing. And it's curious that the library builds fine for you, but can't be used from this project. What you could try is to include individual headers from RmlUi, and see if that helps. What I would also test is to build with the commands printed. E.g. try with the Ninja generator and pass But really, I would mainly suggest to upgrade your compiler ;) |
Thanks for your feedback! This morning I did some more digging with a fresh mind and I think I found the issue: The declarations of GetInto(...) in Variant.h use Not sure why this is causing issues as it should be equivalent, but having them different is maybe really not that clean? Since I don't feel like digging any further and can't quickly update my env (company PC ;)) I'll simply use this as a local patch for now. Let me know if you'd like a PR for it. Cheers!
|
Hey, I must have missed this one earlier. I am happy to hear that you resolved the issue, a quick PR would very much be welcome :) |
Hi there.
I'm trying to integrate RmlUI into my toy project, but as soon as I include RmlUi/Core.h my build fails with the error below.
This is VS 2017 (15.9.70). Solution was generated using CMake 3.15. I'm aware this is a little ancient, but since I'm able to build RmlUI plus samples from a standalone clone just fine I assume I'm only missing a stupid detail.
Minimal CMakeLists.txt I'm using to repro the issue:
main.cpp is nothing but:
Any hints?
The text was updated successfully, but these errors were encountered: