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

Is the program correct on the Linux/Ubuntu? #1

Open
Corezcy opened this issue Nov 25, 2023 · 0 comments
Open

Is the program correct on the Linux/Ubuntu? #1

Corezcy opened this issue Nov 25, 2023 · 0 comments

Comments

@Corezcy
Copy link

Corezcy commented Nov 25, 2023

When I try to build this program, I get this

src/text.cpp: In member function 'text::TextTexture text::FontShaper::renderText(const string&)':
src/text.cpp:86:10: error: 'wstring_convert' is not a member of 'std'
   86 |     std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> conv;
      |          ^~~~~~~~~~~~~~~
src/text.cpp:86:53: error: expected primary-expression before ',' token
   86 |     std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> conv;
      |                                                     ^
src/text.cpp:86:55: error: expected primary-expression before 'char32_t'
   86 |     std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> conv;
      |                                                       ^~~~~~~~
src/text.cpp:87:23: error: 'conv' was not declared in this scope; did you mean 'lconv'?
   87 |     return renderText(conv.from_bytes(s));
      |                       ^~~~
      |                       lconv

It seems that the compiler compatiable question. The wstring_convert is discarded from C++20.

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