title: lcov for multiple directories containing gcda files
body: <p>I want to generate the coverage reports using gcov and lcov.</p>
  
  <p><strong>What I have done till now</strong>:-</p>
  
  <pre><code>1. I compiled my code using --fprofile-arcs and -fprofile-coverage in
  g++.
  
  2. I have linked using lcov.
  
  3. I have .gcno files with th e.o location.
  
  4. When I execute binary, it is resulting into .gcda files.
  </code></pre>
  
  <p><strong>What I have to do</strong> :-</p>
  
  <p>I have to use these data files (.gcda) and want to create a clean report using lcov.</p>
  
  <p><strong>Problem</strong> :-</p>
  
  <p>There are multiple directories in which there are source files and inside each directory I am creating an obj/ARCH dir to keep the object files.</p>
  
  <p>Hence the final directory structure would be:-</p>
  
  <pre><code>  proto  ----&gt; MJ1 ----&gt; MJ2 ----&gt; MJ3 ----&gt; MJ4 ----&gt; MJ5
  
    MJ1 ----&gt; .cpp 
  
        ----&gt; obj/linux/*.o *.gcno *.gcda 
  
    MJ2 ----&gt; .cpp 
  
        ----&gt; obj/linux/*.o *.gcno *.gcda 
  </code></pre>
  
  <p>same with M3, M4, M5.</p>
  
  <p>I am executing lcov from the proto level and it finds .gcda files but giving some error in finding .h and .C file. Any idea how to make this process path independent?</p>
  
  <pre><code>Error:-
  ../MjUtil/glob.h:cannot open source file
  ../MjUtil/MJError.h:cannot open source file
  ../MjUtil/OsStatisticsFile.h:cannot open source file
  </code></pre>
  
  <p>Thanks in advance.</p>