Using a profiler with gcc - linking errors

C

Craig

I have a program that I need to run with a profiler. I'm using gcc
2.95.2. When I tried compiling with -pg, I got a function name
collision against check_cache in a 3rd party library. When I compiled
with -p, the compiler can't find mcrt1.o - it fails to open the file
and therefore, fails to link. I also have access to the Purify suite
which includes Quantify (a profiler), but when I compile against
quantify I get the same error (failed to open mcrt1.o). What is this
file, and what do I need to define (or download/install) or link
against to fix this problem? By the way, I'm compiling on a Solaris 8
machine.

Thanks in advance for your help.

Craig
 
C

chris

Craig said:
I have a program that I need to run with a profiler. I'm using gcc
2.95.2. When I tried compiling with -pg, I got a function name
collision against check_cache in a 3rd party library. When I compiled
with -p, the compiler can't find mcrt1.o - it fails to open the file
and therefore, fails to link. I also have access to the Purify suite
which includes Quantify (a profiler), but when I compile against
quantify I get the same error (failed to open mcrt1.o). What is this
file, and what do I need to define (or download/install) or link
against to fix this problem? By the way, I'm compiling on a Solaris 8
machine.

Thanks in advance for your help.

Craig


Hi Craig -

Perhaps you should ask in gnu.gcc.help?
 
C

Craig

chris said:
Hi Craig -

Perhaps you should ask in gnu.gcc.help?


Will do. I posted here because I found postings in this newsgroup
about prof & gprof as I searched for an answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top