I am using gcov to get code coverage for my program written in C++, I am able to do it without any problem when i don't have a directory structure, for my program I am a directory structure as below
./src/ -- containing all my source files
./obj/ -- containing all my object files
./header/ -- containing all my header files
../../lib/ -- containing a static library, which will be used by
there is a makefile in the current directory which creates my executable
do i need to compile the static library also with the options of gcov i.e. -fprofile-arcs -ftest-coverage, because it is the library that i need to check for coverage.
Kindly help on how use gcov in this situation.