title: Where do the spawn() functions (declared in "spawn.h") come from?
body: <p>I am unable to compile this simple program</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;conio.h&gt;
  #include&lt;spawn.h&gt;
  #include&lt;process.h&gt;
  
  int main(){
      printf("Spawning new process...\n");
      spawnl(P_WAIT,"curl","www.google.co.in",NULL);
      system("cls");
      printf("Program execution completed somehow!\n");
      getch();
      return 0;
  }
  </code></pre>
  
  <p>I have tried using following command:</p>
  
  <pre><code>g++ filename.cpp -l -o filename.cpp
  </code></pre>
  
  <p>Result: <code>ld.exe cannot find -l exit with status 1</code></p>
  
  <pre><code>g++ filename.cpp -o filename
  </code></pre>
  
  <p>Result: <code>error: spawn.h No such file or directory.</code></p>
  
  <p>Is there a problem with my MinGW installation? I am using Windows 7 32 bit and MinGW.</p>