home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!jamshid
- From: jamshid@ut-emx.uucp (Jamshid Afshar)
- Newsgroups: comp.lang.c++
- Subject: Re: How to call C++ functions in a C program?
- Summary: RTFFAQ
- Message-ID: <85682@ut-emx.uucp>
- Date: 21 Dec 92 23:48:23 GMT
- References: <1gqbepINNt6s@function.mps.ohio-state.edu> <1gqe3lINNs1v@eagle.natinst.com> <SCHOUTEN.92Dec17125550@sp95.csrd.uiuc.edu>
- Reply-To: jamshid@emx.utexas.edu
- Organization: The University of Texas at Austin; Austin, Texas
- Lines: 20
-
- >>>I know we can call C functions inside a C++ program. Is there a way to
- >>>call a C++ function inside a C program?
- >> Basically, you can't.
- >I'm not sure how standard it is, but with at least some compilers [...]
-
- Remember Frequently Asked Questions Lists should be read by *anyone*
- posting to a newsgroup, whether it's a question or an answer. This
- topic is handled *thoroughly* in "PART16 -- Linkage-to /
- relationship-with C". The FAQL is available by anonymous ftp at
- sun.soe.clarkson.edu in the file pub/C++/FAQ.
-
- Q105: How can I call a C function `f()' from C++ code?
- Q106: How can I create a C++ function `f()' that is callable by my C code?
- Q107: Why's the linker giving errors for C/C++ fns being called from C++/C fns?
- Q108: How can I pass an object of a C++ class to/from a C function?
- Q109: Can my C function access data in an object of a C++ class?
- Q110: Why do I feel like I'm `further from the machine' in C++ as opposed to C?
-
- Jamshid Afshar
- jamshid@emx.utexas.edu
-