🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50858

mangled names and ld/collect

#50858
From: Roland Schemers
Date: Tue, 20 Jul 1993 20:31
40 lines
1532 bytes
When linking a program with g++ (2.4.5) and a function is not found,
is there a way to get the de-mangled function name to be printed instead
of the mangled? One of our users is claiming that it (and older version
of g++) used to print the de-mangled name.

For example, if foo.C contains:

#include <stdio.h>

extern int f(int,float);

main()
{
printf("%d\n",f(1,1.0));
}

And you compile/link the program you get:

Slapshot:~/tmp 643# g++ foo.C
/bin/ld:
Undefined:
f__Fif
collect: ld returned 1 exit status

Is there a way to get it to print:
Undefined:
   f(int,float) 

Instead?

Thanks, Roland




-- 
Roland J. Schemers III            |    Networking Systems 
Systems Programmer                |    414 Sweet Hall  +1 (415) 723-6740 
Distributed Systems Operations    |    Stanford, CA 94305-3090
Stanford University               |    schemers@Slapshot.Stanford.EDU 
Technical Details
Message-ID: <1993Jul20.203133.9336@leland.Stanford.EDU>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!nntp.Stanford.EDU!schemers

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7a2d2760d99f3681,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-20 13:50:10 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!nntp.Stanford.EDU!schemers
From: schemers@leland.Stanford.EDU (Roland Schemers)
Subject: mangled names and ld/collect
Message-ID: <1993Jul20.203133.9336@leland.Stanford.EDU>
Sender: news@leland.Stanford.EDU (Mr News)
Organization: Distributed Computing Group, Stanford University
Date: Tue, 20 Jul 93 20:31:33 GMT
Lines: 40