When compiling my c++ sources with the -pg
option to inject gprof profile instrumentation code the compile fails with the undefined reference to _mcount
error.
Without this option everything compiles (and runs) fine. What is wrong in my case? (Solaris 10 SPARC Platform)
Are you both compiling each object file and linking the final executable using the '-pg' flag?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With