Mar 20, 2014

Tutorial: Installing portable MinGW C-Compiler gcc on USB Flash Drive / Stick

If you work on different computers, but always want to have a C compiler with you, just create a portable version on an USB flash drive:
  1. Install MinGW to your computer, e.g. "C:\MinGW\"
  2. Copy "C:\MinGW\" to the USB drive "X:\MinGW\"
  3. Create a text file "X:\MinGW\bin\setpath.bat" with content path=%path%;%CD%
  4. Run the batch file "X:\MinGW\bin\setpath.bat"
Now the bin directory of MinGW is in the search path. Now you can use the compiler gcc or other MinGW tools...


  1. This comment has been removed by a blog administrator.

  2. Thanks , I have recently been searching for information about this topic for ages and yours is the best I?ve discovered till now. But, what about the conclusion? Are you sure about the source? 5tb Portable External Hard Drive

  3. Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. recover deleted files from USB

  4. Aspiring to wind up noticeably an astonishing web journal author like the essayist of this blog.USB flash drive formatter for Mac