title: Eclipse CDT - Link individual library with space in file path
body: <p>Using Eclipse CDT, I am trying to link a single library (.lib) file into my project.</p>
  
  <p><img src="https://i.stack.imgur.com/mxuYq.png" alt="Eclipse setup"></p>
  
  <p>During compilation, as a result of the space character in the file path, the path is split around the space, causing the file to not be found, and preventing compilation from executing successfully.  This execution string is generated by Eclipse.</p>
  
  <pre><code>g++ -static-libgcc -static-libstdc++ -o "Test.exe" "src\\Test.o" -lC:/Program Files/Java/jdk1.7.0_15/lib/jvm.lib 
  g++: error: Files/Java/jdk1.7.0_15/lib/jvm.lib: No such file or directory
  </code></pre>
  
  <p>Overall, it has trouble constructing the library option for compilation:</p>
  
  <pre><code>-lC:/Program Files/Java/jdk1.7.0_15/lib/jvm.lib
  </code></pre>
  
  <p>I've tried both surrounding the path in quotes and adding the path's directory as a library path, yet the <code>-l</code> option is malformed in both cases.</p>
  
  <p><strong>How can I successfully add a library with a space in its path into Eclipse CDT?</strong></p>