You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The terminal process terminated with exit code: -1.
Terminal will be reused by tasks, press any key to close it. `
However , when I open the file from documents , the cpp file run properly .
` * Executing task: C/C++: g++.exe build active file
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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.
Beta Was this translation helpful? Give feedback.
All reactions