compiling with gcov flags -fprofile-arcs and -ftest-coverage fails.
I am trying to compile a big C++ project with fprofile-arcs and ftest-coverage. When linking I am getting error:
archive-name.a(object.o) : (.ctors+0x0): undefined reference to `global constructors keyed to ZN107_GLOBAL__N__long_path_of_cpp_file_00000000_FD31D6232_1E'
I am compiling with -fprofile-arcs and -ftest-coverage.
I am linking objects with -fprofile-arcs and ftest-covearge and -lgcov.
I don't know where I am doing wrong. Can anyone help me sort out this problem. Actually I googled a lot on this issue but without any success.
Last edited by sanjay_mishra; 11-29-2009 at 11:25 PM.