Article View: gnu.gcc.help
Article #49973gcc linking problem
From: Richard Walsh
Date: Wed, 01 Dec 1993 23:08
Date: Wed, 01 Dec 1993 23:08
51 lines
1456 bytes
1456 bytes
Hiya..
Using gcc..
Within a C file is a external function call to a C++ function. However the function name being called is not recognized. I think this may have something to do with C++ name mangling. (but then again..)
here's a quick clip of the files..
------
c file
extern RESERVATION REAL_SERVER(RESERVATION);
main()
{
blah blah blah..
RES_TO_SERVER=REAL_SERVER(RES_TO_SERVER);
blah blah blah..
}
------
c++ file
RESERVATION REAL_SERVER(RESERVATION RES_FROM_CLNT)
{
blah blah blah
}
-------
when I gcc stuff the error I am getting is
ld: Undefined symbol
_REAL_SERVER
------
I hope I am being an idiot and missing the obvious!
any ideas?
Thanks
Richard Walsh
walsh@smalltalk.stetson.edu
Technical Details
Message-ID:
<9312012303.AA00737@smalltalk.stetson.edu.stetson.edu>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!smalltalk.stetson.edu!walshShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f905207b0eaa9d07,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-12-01 15:53:48 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!math.fu-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!smalltalk.stetson.edu!walsh From: walsh@smalltalk.stetson.edu (Richard Walsh) Newsgroups: gnu.gcc.help Subject: gcc linking problem Date: 1 Dec 1993 18:08:34 -0500 Organization: GNUs Not Usenet Lines: 51 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9312012303.AA00737@smalltalk.stetson.edu.stetson.edu>