title: How Do I Build Lua For Windows Using MinGW and MSYS?
body: <p>I have a book called Beginning Lua Programming which is suppose to go over the raw basics but it is sort of leaving me stranded. Here is an effort to condense 3 pages:</p>
  
  <p>QUOTE:</p>
  
  <pre><code>The following environment variables are recommended for Windows:
  UTIL_DIR=c:\program files\utility
  LUA_DIR=c:\program files\lua\5.1
  LUA_CPATH=?.dll;%LUA_DIR%\?.dll
  LUA_PATH=?.lua;%LUA_DIR%\?.lua
  The UTIL_DIR variable identifies the utility directory you created in the preceding section. 
  </code></pre>
  
  <p>After this, there is a segment about setting the 'windows search path' for lua. Basically, it tells me to look up the output of 'doskey /?' and 'path' and figure it out myself. I have no idea what these do, how to use them, and what the difference between them is.</p>
  
  <p>I'm at my wits end. A detailed explanation or a link to a detailed blog/article or youtube video is EXTREMELY appreciated!</p>