-
Notifications
You must be signed in to change notification settings - Fork 53
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
building cppcoro failed (undefined reference to __cxa_end_catch/__cxa_begin_catch) #21
Comments
Hi, how did you configure it? I see you are using Clang 11. Could you please try the following:
Does it help? |
Hi, i didn't configure anything, i just used cake without any parameters. I tried the cmake you posted and it wouldn't compile either, i uploaded the log files down below. |
Thanks for your feedback.
Or, alternatively, to use it with gcc, do not export anything, but also do not specify the flags:
Does any of these work? |
I just tried the first code that you sent, but it didn't work aswell. I will upload the created logs down below. CMakeError.log Then i tried CMakeError.log If it helps, the terminal outputs this:
|
You need to clean your build directory before you change the configuration, otherwise CMake will cache settings. You also should use out-of-source builds, see below. Please try the following:
|
I just tried the upper cmake building the cppcoro in cppcoro_gccbuild and it seemed to build without any errors, whereas building the content for the clangbuild folder threw errors again. Is the build by the gcc compiler seen as a success? Or does it need to be built by clang?
|
I also do net get clang 11 working. Same error as above.
When I try to add the cxx flags So maybe we need to wait for clang12? Not sure if it works with clang8,9,10 |
-DCMAKE_CXX_STANDARD=20 should be all you need. It works fine with both clang-10 and clang-11 in the CI. |
Ah, just had an idea: Does this help? |
Thanks, this made it work for the clang build aswell. |
Cool. I will add that step to the build documentation. |
Hi Andreas, i just tried to build cppcoro but the build failed for me with a lot of "undefinded reference" errors and i was wondering if you can help me build it successfully.
Example:
The text was updated successfully, but these errors were encountered: