Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2008 21:58:00 +0200
From:      Tijl Coosemans <tijl@ulyssis.org>
To:        nayak_purushotham@yahoo.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Profiled C++ libraries
Message-ID:  <200804292158.01628.tijl@ulyssis.org>
In-Reply-To: <745065.54909.qm@web56112.mail.re3.yahoo.com>
References:  <745065.54909.qm@web56112.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 29 April 2008 18:44:15 Purushotham Nayak wrote:
> I'm trying to use gprof to profile some code but compilation fails
> because it can't find libstdc++_p (GCC 3.4.6). I tried using gcc 4.2
> but it can't find m_p. I have /usr/src/contrib/libstdc++ but can't
> find the documentation that the README file is referring to
> (docs/html/documentation.html). Can anyone please let me know how to
> get a profiled version of the c++ library for my platform.
> 
> I'm using FreeBSD 6.0 i386.

I thought they were installed by default, but in any case you should
find libstdc++_p.a under /usr/obj after doing this:

% cd /usr/src/gnu/lib/libstdc++/
% make obj && make depend && make

Make sure you don't have anything like NO_PROFILE, NOPROFILE or
WITHOUT_PROFILE defined in /etc/make.conf.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804292158.01628.tijl>