问题遇到的现象和发生背景
在学习c++ 写一个小项目练习,我写完第一个函数后cmake编译后没有问题,之后又写了第二个函数 再次cmake时报错
报错内容如下
PS D:\myvscode\vscode-code\cpptest1\build> mingw32-make
Consolidate compiler generated dependencies of target main
[ 25%] Building CXX object CMakeFiles/main.dir/src/Menu.cpp.obj
[ 50%] Linking CXX executable ..\bin\main.exe
D:/myvscode/mingw/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file ..\bin\main.exe: Pe: Permission denied
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\main.dir\build.make:133: ../bin/main.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/main.dir/all] Error 2
mingw32-make: *** [Makefile:90: all] Error 2
希望可以得到解答 我怎样操作才不会报错