-
Notifications
You must be signed in to change notification settings - Fork 54
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
Clang/GCC incompatiblity #2
Comments
On ubuntu, executables must be explicitly linked with cmake -DCMAKE_CXX_FLAGS="-stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-lc++" <path_to_sources> |
Is this now solved with the latest changes in the integrate_all branch? |
No, it is not. |
I guess this is solved in the master branch of andreasbuhr/cppcoro? |
The answer is simple can you build it with clang without |
There are few problems with clang.
First, It is not able to find GCC headers, it is caused by -fcoroutines-ts and -fcoroutines does not define the same preprocessor definition, It can be workarounded with -D__cpp_impl_coroutine=1 (what -fcoroutines does).
And now, clang complains that a coroutine cannot be used without <experimental/coroutine> inclusion what is breaking with GCC.
eg.:
Currently the only way to use with clang is to use libc++ (tested with clang-12 on Arch):
The text was updated successfully, but these errors were encountered: