title: Using Cygwin to Compile a C program; Execution error
body: <p>I'm enrolled in a masters computer science course. The course is using C and the instructor wants us to use <a href="http://www.cygwin.com/" rel="nofollow noreferrer">Cygwin</a> to compile programs if we are using windows. </p>
  
  <p>I've downloaded and installed <a href="http://www.cygwin.com/" rel="nofollow noreferrer">Cygwin</a> and I've ensured that I've installed the <a href="http://gcc.gnu.org/" rel="nofollow noreferrer">GCC compiler</a>. </p>
  
  <p>But I don't know where to go from here. I need to compile a single source file that has a basic include.</p>
  
  <pre><code>#include &lt;stdio.h&gt; 
  </code></pre>
  
  <p>Lets assume the file is on my desktop (it is not, but for the sake of argument). How do I navigate to the desktop from the bash shell? I assume once I've navigated to the correct location in bash, I simply execute:</p>
  
  <pre><code>gcc myProgram.c -o myProgram
  </code></pre>
  
  <p><strong>Update</strong>: Following different instructions posted below, I was able to compile the program; I thank you for that. But when I execute the resulting binary I get the following. How can I compile or execute this program so I don't get the error?  Again, thank you.</p>
  
  <p><code>This application has failed to start because cygwin1.dll was not found. Re-installing the application may fix this problem.</code></p>