g++ and gprof

Pieter de Goeje pieter at degoeje.nl
Fri Mar 7 14:52:32 UTC 2008

On Friday 07 March 2008, Mark Voortman wrote:
>  Folks,
> I'm trying to use gprof on one of my programs and so I'm compiling with g++
> and the -pg option. However, it tells me that '/usr/bin/ld: cannot find
> -lstdc++_p'. How do I install libraries that support profiling? Or is there
> another way to solve this issue? I'm running FreeBSD 7.0 release.
> Thanks,
> Mark

Rebuild/reinstall world, and make sure WITHOUT_PROFILE= isn't specified in 

Pieter de Goeje

More information about the freebsd-questions mailing list