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

Build on visualstudio 2019 get ascii, utf errors #599

Closed
harrism76 opened this issue Dec 12, 2023 · 1 comment
Closed

Build on visualstudio 2019 get ascii, utf errors #599

harrism76 opened this issue Dec 12, 2023 · 1 comment

Comments

@harrism76
Copy link

Hello, sorry if this is a simple problem but i followed the steps on building on windows and installed component clang and download the llvm platform tool for visual studio but keep getting these errors.

C:\Users\harri\dev\cppinsights\CodeGenerator.cpp(2358,32): error : no member named 'Ascii' in 'clang::CharacterLiteral'
[C:\Users\harri\dev\cppinsights\build\insights.vcxproj]
C:\Users\harri\dev\cppinsights\CodeGenerator.cpp(2359,32): error : no member named 'Wide' in 'clang::CharacterLiteral'
[C:\Users\harri\dev\cppinsights\build\insights.vcxproj]
C:\Users\harri\dev\cppinsights\CodeGenerator.cpp(2360,32): error : no member named 'UTF8' in 'clang::CharacterLiteral'
[C:\Users\harri\dev\cppinsights\build\insights.vcxproj]
C:\Users\harri\dev\cppinsights\CodeGenerator.cpp(2361,32): error : no member named 'UTF16' in 'clang::CharacterLiteral'
[C:\Users\harri\dev\cppinsights\build\insights.vcxproj]
C:\Users\harri\dev\cppinsights\CodeGenerator.cpp(2362,32): error : no member named 'UTF32' in 'clang::CharacterLiteral'
[C:\Users\harri\dev\cppinsights\build\insights.vcxproj]
C:\Users\harri\dev\cppinsights\CodeGenerator.cpp(2379,87): error : no member named 'Ascii' in 'clang::CharacterLiteral'
[C:\Users\harri\dev\cppinsights\build\insights.vcxproj]

@harrism76
Copy link
Author

I think i solved it, had to force cmake for built llvm clang and install some visualstudio components for clang.
cmake "-DCMAKE_CXX_COMPILER=C:/Users/harri/dev/llvm-local/bin/clang++.exe" -G "Visual Studio 16 2019" -A x64 -T ClangCl ..
for some reason the cl.exe and clang-cl from microsoft gives utf errors.

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