最近使用GOLAND的过程中出现一个问题:随便写一个最简单的程序(如图1)
![1.png](https://static.studygolang.com/200802/74dbdef7729a162990b226fff344dc74.png)
保存之后右键“run go build main.go”,第一次能够正常运行(如图2)(图3)
![2.png](https://static.studygolang.com/200802/da6749e09d9593d32c17566b430a8cc5.png)
![3.png](https://static.studygolang.com/200802/05bc7badd9e50512c15f1bb745267a5f.png)
再执行一次右键“run go build main.go”,控制台会报"C:\Users\XXX\AppData\Local\Temp\go-build162166022\b001\exe\a.out.exe: The process cannot access the file because it is being used by another process."的错误(图4)
![4.png](https://static.studygolang.com/200802/39e56c53ca663fedce7cad3095a2eaed.png)
不知道有没有人碰到过这种问题,谁知道该怎么解决
更多评论
问题解决了吗,我也遇到这个问题了,但我的报错是
```
go build command-line-arguments: build output "C:\\Users\\glon\\AppData\\Local\\Temp\\___go_build_test_go.exe" already exists and is not an object file
```
#2