Using gcov with DLLs

Sweval, Jevin A jevin.a.sweval@delphi.com
Mon Aug 6 14:03:00 GMT 2007


How can I get gcov coverage to work when making DLLs? I compile with `-fprofile-arcs -ftest-coverage` and link with `-lgcov` yet I get undefined references to `___gcov_init' and `___gcov_merge_add'. I see that somebody else on the mailing lists had trouble doing this a while back but he was never answered. Gcov works fine when not making a DLL though using `-mno-cygwin` produces a version mismatch. Thanks for your help!
 
-Jevin Sweval

****************************************************************************************

Note:  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. 

****************************************************************************************

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list