🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1460

Problems with gcc/g++ and profiling

#1460
From: Heini Withagen
Date: Tue, 12 Jan 1993 15:41
28 lines
1270 bytes

I am having trouble with gcc/g++ 2.2.2 compiling programs with -pg
options for profiling. I have been looking what g++ actually does
during compilation/linking (-v option) and compared this to 'cc' (on 
a SUN Sparc).

It seem that g++ is linking the wrong libraries which do not contain
the right function for profiling. When I try to make a seperate call
to the linker with the same libraries substituded as with 'cc', I get
a long list of 'Undefined' names which look like 'LBE??' and 'LBB??'.


Does anyone know the answer to my problems ?? Please help me, because
I am getting quite desperate.


Thanks very much in advance,

Heini Withagen
Department of Electrical Engineering EH 9.29
Eindhoven Technical University
P.O. Box 513
5600 MB Eindhoven
The Netherlands
Phone: 31-40472366
Fax:   31-40455674
E-mail: heiniw@eeb.ele.tue.nl
Technical Details
Message-ID: <6969@tuegate.tue.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!eebsun1.eeb.ele.tue.nl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!eebsun1.eeb.ele.tue.nl
From: heiniw@eebsun1.eeb.ele.tue.nl (Heini Withagen)
Newsgroups: comp.std.c++
Subject: Problems with gcc/g++ and profiling
Message-ID: <6969@tuegate.tue.nl>
Date: 12 Jan 93 15:41:24 GMT
Sender: root@tuegate.tue.nl
Organization: Electronic Circuit Design Group, Eindhoven University of Technology, The Netherlands
Lines: 28