Article View: gnu.gcc.help
Article #51065Re: [Q] calling C-libs from C++-progr.
From: Fergus James HENDERSON
Date: Sat, 26 Jun 1993 10:56
Date: Sat, 26 Jun 1993 10:56
27 lines
1933 bytes
1933 bytes
not-for-mail@rubb.rz.ruhr-uni-bochum.de (Martin H. Ludwig ) writes:
>I want to call some functions of my old C-library from my C++ program.
>Due to the different calling format the linker replies errors:
>He seaches for the complete functions with the types of the arguments but
>in the libs there are only the simple function names with an underscore
>(C-convention I think).
>My question: How can I call my C-library function from my C++-program?
>I use GCC V2.3.3 under Linux
This is a Frequently Asked Question, number 105 of the C++ FAQ list.
You can get the C++ FAQ via anonymous ftp or email:
Availability: This is available via anonymous ftp
from: sun.soe.clarkson.edu [128.153.12.3]
in the file: ~ftp/pub/C++/FAQ
Without FTP: You can also get it by sending electronic mail:
| To: archive-server@sun.soe.clarkson.edu
| Subject: send C++/FAQ
This will help those who don't have ftp.
--
Fergus Henderson This .signature virus might be
fjh@munta.cs.mu.OZ.AU getting old, but you still can't
consistently believe it unless you
Linux: Choice of a GNU Generation copy it to your own .signature file!
Technical Details
Message-ID:
<9317720.3901@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!math.ohio-state.edu!cs.utexas.edu!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjhReferences:
<19930626091718.not-for-mail@CD41013.rz.ruhr-uni-bochum.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,58920fb64c8274fe X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-26 04:00:34 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!news.dfn.de!darwin.sura.net!math.ohio-state.edu!cs.utexas.edu!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) Subject: Re: [Q] calling C-libs from C++-progr. Message-ID: <9317720.3901@mulga.cs.mu.OZ.AU> Sender: news@cs.mu.OZ.AU Organization: Computer Science, University of Melbourne, Australia References: <19930626091718.not-for-mail@CD41013.rz.ruhr-uni-bochum.de> Date: Sat, 26 Jun 1993 10:56:13 GMT Lines: 27