-
Notifications
You must be signed in to change notification settings - Fork 171
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
Cannot compile example_trivial.cpp in Linux #2
Comments
Hello, thanks for reporting. I am unable to reproduce on Ubuntu using clang++9,0 and the following compilation flags :
clang version 9.0.0-2 (tags/RELEASE_900/final) It looks related to this hamon-in/cpslib#30 Could you please :
|
Hi, I can compile above example after removing -pedantic and -pedantic-errors flags, however, the compiled binary give me a segv. You can find my build configuration here https://github.com/hungptit/cppidioms/blob/test_quill/src/test_quill.cpp. I take a quick look at the issue using gdb and the error seem to be related to thread
|
thanks, what linux distro are you using ? And how did you install clang 9.0 ? I would like to recreate the os image you are using to see if I can reproduce |
I use Gentoo and I get segv using both gcc and clang++. Below is the detail information
I take another quick look at the problem and I find out that Compiled without
Compiled using
|
Hello, thanks for looking into it. I managed to reproduce the clang The library is using Using gcc 9 or clang9 - The behaviour is similar :
Can you try using the above compilation flags and let me know if it works ? Also does it run okay for you without segfault with clang9 when you remove Also, the library sets it's own compiler flags for the library target only in cmake If you want to compile the example and still use
This would compile only the target |
I think my problem will go away if quill can be used in header only build. Do you plan to support header only build? |
as mentioned here it will require many changes for this. can you try adding |
I confirm that the problem is go away if I use above linking options, however, the output of Thank a lot for your help.
|
BTW, I really like quill and I look forward to try it out in the near future. My use cases is quite special because my binaries need to run on different Linux machines. |
I try to compile example_trivial.cpp in Linux using clang++-9.0.1 and get below compilation errors. Do you have any suggestion?
Thanks,
Hung
And this is the compilation command
The text was updated successfully, but these errors were encountered: