From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16422 invoked by alias); 5 Jul 2006 07:32:27 -0000 Received: (qmail 16408 invoked by uid 22791); 5 Jul 2006 07:32:26 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.gmv.es (HELO mx2.gmv.es) (195.219.143.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Jul 2006 07:32:21 +0000 Received: from webmail.gmv.es (caronte [195.219.143.2]) by mx2.gmv.es (8.13.6/8.13.1/mx2.gmv.es - Win 3.11 under MAC OS mx2.gmv.es) with ESMTP id k657W7Ox027941 for ; Wed, 5 Jul 2006 09:32:18 +0200 Received: from GMVMAIL1.gmv.es ([172.22.1.25]) by webmail.gmv.es with Microsoft SMTPSVC(6.0.3790.1830); Wed, 5 Jul 2006 09:32:17 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Profiling with g++ Date: Wed, 05 Jul 2006 07:32:00 -0000 Message-ID: From: "Carlos Marcelino Casas Cuadrado" To: Content-Disposition: inline Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00028.txt.bz2 Hi! The linker options are is: -g -pg -ansi -fpermissive -Lpaths_to_search_specific_libraries -lspecific_l= ibraries_to_use -lshocket -shared -fPIC -lc Thanks a lot! -----Mensaje original----- De: Tim Prince [mailto:XXX]=20 Enviado el: mi=E9rcoles, 05 de julio de 2006 1:18 Para: Carlos Marcelino Casas Cuadrado CC: gcc-help@gcc.gnu.org Asunto: Re: Profiling with g++ Carlos Marcelino Casas Cuadrado wrote: > Hello all! > I'm trying to compile a "quite huge" C++ library in SUN Solaris with=20 > the -pg option for profiling. It compiles fine, but when I try to make=20 > the dynamic library it says that objects in >=20=20 > /usr/lib/libp/libc.a > and > /usr/lib/libp/libm.a >=20=20 > are not defined. Those objects are very different; they go from=20 > _mcount to _memcpy. Without the -pg option everything goes ok. Might I=20 > be missing some library or anything like that? >=20=20 If you use g++ -pg to drive the link, it should set up to search the necess= ary libraries. As you have not given specifics of your link command, we ma= y suspect you have done differently. ______________________ Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener informacion clasificada por su emisor como confidencial en el marco de su Sistema de Gestion de Seguridad de la=20 Informacion siendo para uso exclusivo del destinatario, quedando=20 prohibida su divulgacion copia o distribucion a terceros sin la=20 autorizacion expresa del remitente. Si Vd. ha recibido este mensaje=20 erroneamente, se ruega lo notifique al remitente y proceda a su borrado.=20 Gracias por su colaboracion. ______________________ This message including any attachments may contain confidential=20 information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it. ______________________