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

problem compiling with clang #3

Open
geochrist opened this issue Oct 27, 2019 · 3 comments
Open

problem compiling with clang #3

geochrist opened this issue Oct 27, 2019 · 3 comments

Comments

@geochrist
Copy link
Contributor

I'm getting the following error message when trying to include this header file when compiling with clang

/Users/gjchen/projects/tau/tau2020/github/dctk/../Parser-SPEF/parser-spef/parser-spef.hpp:62:8: error:
no template named 'optional' in namespace 'std'
std::optional<std::pair<float, float>> coordinate;

gjchen% clang++ -v
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Any idea what is going on?

@tsung-wei-huang
Copy link
Member

Right now we only take G++ 8.2 version at least :) Apple clang is not supported.

@geochrist
Copy link
Contributor Author

geochrist commented Oct 27, 2019 via email

@geochrist
Copy link
Contributor Author

I'm unable to fix my gcc, due to a conflict between Apple and MacPort infrastructure.

I went back to clang and got it running further by moving to c++1z standard, but my clang compiler doesn't support experimental::filesystem::path until a later version. Would it be possible to re-write the code so that it replaces experimental::filesystem::path with char*? I've got some code that seems to compile and run OK at this point. I can give you the changes when they are fully tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants