This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Profiling with libm?
- To: help-gcc at gnu dot org
- Subject: Profiling with libm?
- From: schulz at Informatik dot TU-Muenchen dot DE (Stephan Schulz)
- Date: 24 Aug 1999 10:01:02 GMT
- Distribution: world
- Newsgroups: gnu.gcc.help
- Organization: Technische Universitaet Muenchen -- FB Informatik
- Xref: wodc7nx0 gnu.gcc.help:677
Hi,
I am using GNU gcc (gcc version egcs-2.90.23 980102 (egcs-1.0.1
release)) on Solaris 2.6 (SunOS 5.6 Generic_105181-10 sun4u sparc
SUNW,Ultra-5_10) with the -pg option to generate code that writes
gmon.out for the gprof profiler.
Everything works fine up to the linking stage, then the linker barfs
about missing symbols for the math functions (pow() and sqrt() in my
case).
Does anybody know how to fix this problem? It may be a problem with
gcc or with Solaris, or I may simply need to specify something else
instead of -lm for the linking stage...
Thanks,
Stephan
-------------------------- It can be done! ---------------------------------
Please email me as schulz@informatik.tu-muenchen.de (Stephan Schulz)
----------------------------------------------------------------------------