This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Using gcov with DLLs
- From: "Sweval, Jevin A" <jevin dot a dot sweval at delphi dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 6 Aug 2007 10:02:14 -0400
- Subject: Using gcov with DLLs
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/