This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Profiling with libm?



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)
----------------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]