Cannot open outputfile ; No such file or directory #12673
Unanswered
phching (phching)
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
Uh oh!
There was an error while loading. Please reload this page.
I am code beginner but i just find a problem that cofused me a lot , please help!
When i open the folder from the desktop and run the cpp file , the error appears.
`Starting build...
cmd /c chcp 65001>nul && C:\mingw64\bin\g++.exe -fdiagnostics-color=always -g C:\Users\super\OneDrive\桌面\permission\main.cpp -std=c++20 -o C:\Users\super\OneDrive\桌面\permission\main.exe
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file C:\Users\super\OneDrive\桌面\permission\main.exe: No such file or directory
collect2.exe: error: ld returned 1 exit status
Build finished with error(s).
However , when I open the file from documents , the cpp file run properly .
` * Executing task: C/C++: g++.exe build active file
Starting build...
cmd /c chcp 65001>nul && C:\mingw64\bin\g++.exe -fdiagnostics-color=always -g "C:\Users\super\OneDrive\Dokumen\C++ roadmap\C++\Ch.2_DivingIn\2.4_statement.cpp" -o "C:\Users\super\OneDrive\Dokumen\C++ roadmap\C++\Ch.2_DivingIn\2.4_statement.exe"
Build finished successfully.
All reactions