Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-29-2009, 11:24 PM   #1
LQ Newbie
Registered: Jul 2006
Location: Pune, India
Distribution: Suse, Debian
Posts: 4

Rep: Reputation: 0
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.
Old 12-02-2009, 03:06 AM   #2
LQ Newbie
Registered: Jul 2006
Location: Pune, India
Distribution: Suse, Debian
Posts: 4

Original Poster
Rep: Reputation: 0
No solutions yet. I am still working on the same problem.
0 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problem with LCOV GCOV graemef Programming 1 08-26-2009 12:07 AM
flags for compiling Xlib.h in gcc Maidros Programming 2 06-15-2005 05:00 AM
optimization flags and kernel compiling kpachopoulos Linux - Newbie 2 08-26-2004 07:29 AM
Optimizing flags compiling question wrc1944 Linux - Newbie 14 08-13-2002 09:55 AM
Compiling KDE 3.0 w/ multiple architecture flags (quick and easy question)? MatMan5959 Linux - Software 4 05-31-2002 01:57 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration