title: collect2.exe: error: ld returned 1 exit status in eclipse cdt
body: <p>I'm a beginner of programming. I am using Eclipse CDT for C programming. When I  build any program, the console window shows the below message. Please tell me a  specific way so that I could solve this problem.</p>
  
  <p>Console window:</p>
  
  <pre><code>Info: Configuration "Debug" uses tool-chain "MinGW GCC" that is unsupported on this system, attempting to build anyway.
  Info: Internal Builder is used for build
  gcc -O0 -g3 -Wall -c -fmessage-length=0 -o test.o "..\\test.c" 
  gcc -o test.exe test.o 
  c:/mingw/bin/../lib/gcc/i686-pc-mingw32/4.9.2/../../../../i686-pc-mingw32/bin/ld.exe: cannot open output file test.exe: Permission denied
  collect2.exe: error: ld returned 1 exit status
  
  00:33:35 Build Finished (took 2s.385ms)
  </code></pre>