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

Compilation error when including <ztd/text.hpp> #44

Open
melton1968 opened this issue Mar 20, 2024 · 0 comments
Open

Compilation error when including <ztd/text.hpp> #44

melton1968 opened this issue Mar 20, 2024 · 0 comments

Comments

@melton1968
Copy link

melton1968 commented Mar 20, 2024

I folllowed the cmake install instruction and the ztd libraries all seem to compile correctly. However, in my main program, including the file <ztd/text.hpp> causes the following compilation errors on MacOS Sonoma 14.4 using clang-16.0.6. Any help is appreciated.

In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.text-src/include/ztd/text.hpp:39:
In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.text-src/include/ztd/text/encoding.hpp:39:
In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.text-src/include/ztd/text/execution.hpp:40:
In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.text-src/include/ztd/text/impl/execution_cuc
har.hpp:48:
In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.text-src/include/ztd/text/detail/encoding_na
me.hpp:44:
In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.text-src/include/ztd/text/iconv_names.hpp:38
:
In file included from /Users/mmelton/work/tetris-cpp/build/_deps/ztd.idk-src/include/ztd/idk/c_string_view.hpp:38
:
/Users/mmelton/work/tetris-cpp/build/_deps/ztd.idk-src/include/ztd/idk/basic_c_string_view.hpp:313:40: error:
redefinition of 'tag_invoke' as different kind of symbol
friend constexpr basic_c_string_view tag_invoke(ztd::tag_t<::ztd::ranges::reconstruct>,
^
/Users/mmelton/work/tetris-cpp/build/_deps/ztd.idk-src/include/ztd/tag_invoke/tag_invoke.hpp:78:50: note:
previous definition is here
inline constexpr __tginv_detail::tag_invoke_fn tag_invoke {};

                                                           ^
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

1 participant