LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   compiling with gcov flags -fprofile-arcs and -ftest-coverage fails. (https://www.linuxquestions.org/questions/linux-general-1/compiling-with-gcov-flags-fprofile-arcs-and-ftest-coverage-fails-772362/)

sanjay_mishra 11-29-2009 11:24 PM

compiling with gcov flags -fprofile-arcs and -ftest-coverage fails.
 
Hi,

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.

Thanks

sanjay_mishra 12-02-2009 03:06 AM

No solutions yet. I am still working on the same problem.


All times are GMT -5. The time now is 08:08 PM.