I have 3 files in a folder. one.cpp
, one.hpp
and main.cpp
. one.hpp
has a class declaration. one.cpp
has definition of functions in the class both under same namespace.Iam calling a function from the class in main and including one.hpp
in main. how can compile and run all these files to generate coverage using gcov ?
I tried generating seperate object files and creating an executable .Didn't work