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...

2 comments:

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

    ReplyDelete
  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

    ReplyDelete