C++ basic error

C:/msys64/mingw64/bin/…/lib/gcc/x86_64-w64-mingw32/10.3.0/…/…/…/…/x86_64-w64-mingw32/bin/ld.exe: cannot open output file temp.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
Can anybody pls tell what is this error/ how to fix it?

if you have any anti-virus enabled then just disable it.

I don’t, any other reason? I am not even able to do it in cc ide as it terminates after 5s

Provide more information. A picture and/or settings info will do.

Check this

@ssjgz can help us.

More answers at Stackoverflow.

1 Like