The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
google unix.com



Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Link error while linking a shared library in unix arunkumar_mca UNIX for Dummies Questions & Answers 3 02-15-2007 09:59 AM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 05:10 AM
link error problem niukun Linux 4 11-18-2004 04:14 AM
Differences between hard link and soft link penguin-friend UNIX for Advanced & Expert Users 3 03-08-2002 03:49 PM
Link Edit Error, Help!!!!! rachael High Level Programming 1 10-24-2001 10:52 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-09-2008
clho clho is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
Application link error with gcov

Hi,

I'm trying gcov on my Debian VM.
gcov (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.

It work with example program, but I got link error in my application code.

C_FLAGS += -Wall -W -O0 -fprofile-arcs -ftest-coverage

Each class file has the same error:

fileMgr.o: In function `global constructors keyed to 0__ZN7FileMgrC2Ev':
fileMgr.cpp: (.text+0x254da): undefined reference to `__gcov_init'
fileMgr.o: (.data.rel+0x24): undefined reference to `__gcov_merge_add'
backupMgr.o: In function `global constructors keyed to 0__ZN9BackupMgrC2Ev':
backupMgr.cpp: (.text+0x10458): undefined reference to `__gcov_init'
backupMgr.o: (.data.rel+0x24): undefined reference to `__gcov_merge_add'
...
collect2: ld returned 1 exit status
make: *** [fileMgmt] Error 1

Did I missing something?

Thanks!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0