home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18291 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.5 KB

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