-
Notifications
You must be signed in to change notification settings - Fork 23
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
Missing include files #179
Comments
Thanks for the info! Do you know in which .cpp file the compilation fails? Those headers should already be included indirectly through the stratagus.h header, which should be included in every .cpp file (but it is missing in one of them). |
As far as I remember the first error I've seen was in assert_util.cpp. |
Sorry for the delay in responding. It is strange that the error is present in assert_util.cpp, since that includes stratagus.h, which in turn includes pch.h, which then includes and <source_location>. I'm not sure what could be causing this issue, especially since the automatic compilation workflow is working without any problems. |
The error message:
Full log: |
I think I understand the reason for the issue now. I had made a mistake in the pch.h file, only including <source_location> if __cpp_lib_source_location were defined. But the latter is defined either in <source_location> itself, or in . So whether this worked was compiler-dependent, if the C++ standard library headers for that implementation included directly or indirectly before we got to the <source_location> check. I've fixed this issue now by replacing that condition with a check to __has_include<source_location> (in my two latest commits). I hope this works! |
To build with openSUSE_Tumbleweed following patch is necessary:
The first of these two probably needs to be surrounded with the same #ifdefs as later in the file.
The text was updated successfully, but these errors were encountered: