title: run a command with execvp in c program
body: <p>I want to run this command with execvp </p>
  
  <pre><code>gcc file1.o file2.o file3.o
  </code></pre>
  
  <p>I created a tab wich contain this :</p>
  
  <pre><code>char * tab = {"file1.o", "file2.o", "file3.o", NULL };
  </code></pre>
  
  <p>when I call execvp like that :</p>
  
  <pre><code> execvp("gcc",tab);
  </code></pre>
  
  <p>I have this error :</p>
  
  <pre><code>file1.o: erreur fatale: -fuse-linker-plugin, but liblto_plugin.so not found
  </code></pre>
  
  <p>When I compile the files using :</p>
  
  <pre><code>gcc file1.o file2.o file3.o
  </code></pre>
  
  <p>there is no problem.</p>
  
  <p>Note my program is not like that I wrote it like that to simplify. for the complete code look visit <a href="http://pastebin.com/zQ8pwmZd" rel="nofollow">http://pastebin.com/zQ8pwmZd</a></p>