Xref: news2.mv.net comp.os.msdos.djgpp:1246 From: devitto AT s7604030 DOT ferndown DOT ate DOT slb DOT com (Dom De Vitto) Newsgroups: comp.os.msdos.djgpp Subject: Re: calling C++ from C Date: 19 Feb 1996 17:23:01 GMT Organization: Schlumber Technologies (Board Systems) Lines: 28 Message-ID: <4gabll$sur@snlsu1> References: NNTP-Posting-Host: s7604030.ferndown.ate.slb.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Fri, 2 Feb 1996 05:55:51 GMT, Brendan Simon (brendan AT rdt DOT monash DOT edu DOT au) wrote: : I am new to C++ but experienced with C and soley use djgpp v2. : I have a simple C++ program which I intend to use as a library. : Can I call/use a C++ class from within a C program ? : If not, can I have a wrapper style function in the C++ program which will : use the class objects ? : As I understand it, I would also need 'extern "C" {' and '}' in the C++ file. : Is this correct ?? : Thanks for your help. I suggest you read the C++ FAQ, then the comp.lang.c++.moderated charter then post an article to the latter if you are still unanswered. Dom -- _____________________________________________________________________________ Dom De Vitto devitto AT ferndown DOT ate DOT slb DOT com Schlumberger Automatic Test Equipment fox AT bcs DOT org DOT uk Board Systems Desk/voicemail: +44(0) 1202 850951 Wimborne, Dorset, Site reception: +44(0) 1202 850850 England, BH21 7PP Fax: +44(0) 1202 850988 _____________________________________________________________________________