title: GCC Command-Line Argument Pickiness
body: <p>GCC can get pretty picky about the order in which it accepts its arguments:</p>
  
  <pre><code># Works.
  g++ Foo.cpp -L. -I. -lBar -o Foo
  
  # Linker errors.
  g++ -o Foo -I. -L. -lBar Foo.cpp
  </code></pre>
  
  <p>What, specifically, are the ordering requirements for command-line options?</p>