VScode GCC isn't able to run .cpp files with Chinese file name #11786
Unanswered
ethanolboi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OS version: windows 11
Hi, I've been wanting to use the gcd function, so I switched the configuration from msvc using cl.exe to windows-gcc-x64 using gcc.exe, and intellisense mode windows-gcc-x64. This works fine on files with English only names and in directories with English only names. My files with Chinese names that used to be able to run perfectly with the msvc configuration now aren't able to run with the gcc configuration.
It displays this error:
Starting build...
C:/msys64/ucrt64/bin/gcc.exe -fdiagnostics-color=always -g "C:\Users\ethan\OneDrive\Desktop\南海信息学\结业测试\第2题 纸块.cpp" -o "C:\Users\ethan\OneDrive\Desktop\南海信息学\结业测试\第2题 纸块.exe"
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\ethan\OneDrive\Desktop??????????2? ??.exe: Invalid argument
collect2.exe: error: ld returned 1 exit status
Build finished with error(s).
Is there a way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions