-
Notifications
You must be signed in to change notification settings - Fork 95
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
Compiling errors with Ubuntu22.04 #364
Comments
I tried it, and it works flawlessly, without any compiler warnings: git clone --recursive https://github.com/biojppm/rapidyaml
cd rapidyaml/samples/singleheader && ./run.sh The result is
This defaults on I suspect something else is at play. How are you compiling it? Do you have any special flags enabled? |
Hi @biojppm, Thank you for looking into this. I've tried the sample code compiling on my system and it passed as well. After a little bit further digging into, I found the issue relates to the other header file <boost/format.hpp> included in my project, and the include order matters. I can simply reproduce the error by including <boost/format.hpp> before <ryml_all.hpp> within quickstart.cpp, see diff as below:
And then the compiling errors will be as below:
|
Thanks - with your description I now see the error. It has to do with the amalgamated header, where for some reason I guess some macro in the boost header is throwing off the preprocessor code for charconv method selection, but I have to investigate this. |
Actually, it was down to a filtered Can you confirm that the current master fixes your problem? |
Sorry for a delayed response, @biojppm. |
Yes, there was an update of the fastfloat library, and also more work on the c4core. |
Closing now. Thanks for reporting! |
You're very welcome😄 |
When building with bundled JSON and bundled RapidYAML, the build works. However, when building with system-provided JSON and bundled RapidYAML, the build fails due to many things not being defined. It seems these are supposed to come from the standard <charconv> header, but RapidYAML 0.5.0 release erroneously strips that include in its single-file amalgamation. See RapidYAML issue biojppm/rapidyaml#364 (comment)
I'm having a bunch of compiling error when using the single header file on Ubuntu 22.04.2 w/ gcc11, most relates to std::chars_format.
Is it now fully supported?
The text was updated successfully, but these errors were encountered: