Skip to content
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

how to build with clang? #1247

Closed
addriumruss opened this issue Sep 19, 2018 · 6 comments
Closed

how to build with clang? #1247

addriumruss opened this issue Sep 19, 2018 · 6 comments
Labels
solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@addriumruss
Copy link

how to build with clang?

@nlohmann
Copy link
Owner

What did you try?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Sep 19, 2018
@nlohmann
Copy link
Owner

@addriumruss Could you please explain what you mean with "build with clang"? The library is a C++ header - it can be build with Clang since version 3.4.

@addriumruss
Copy link
Author

addriumruss commented Sep 25, 2018 via email

@addriumruss
Copy link
Author

[russ@centos7 ~]$ gcc --version
gcc (GCC) 6.4.0
Copyright © 2017 Free Software Foundation, Inc.
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
[russ@centos7 ~]$ clang --version
clang version 3.4.2 (tags/RELEASE_34/dot2-final)
Target: x86_64-redhat-linux-gnu
Thread model: posix
[russ@centos7 ~]$

@nlohmann
Copy link
Owner

Your compiler seems to use the STL from GCC 4.8.2. This compiler has not been supported until recently (#1257). You could try if the latest code in the develop branch works. Furthermore, you may want to check why GCC 6.4.0 uses includes from GCC 4.8.2 (/usr/include/c++/4.8.2).

@nlohmann nlohmann added solution: proposed fix a fix for the issue has been proposed and waits for confirmation and removed state: needs more info the author of the issue needs to provide more details labels Sep 29, 2018
@addriumruss
Copy link
Author

Problem not exist any more with the latest code, really appreciated!
Thank you, nlohmann!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants