Re: C++ object interfaces to C

"Karl M. Syring" <syring@email.com>
26 Nov 2002 22:13:47 -0500

          From comp.compilers

Related articles
C++ object interfaces to C djg@tramontana.co.hu (Gabor DEAK JAHN) (2002-11-24)
Re: C++ object interfaces to C bad.address.to.avoid.spam@bellatlantic.net (Roberto Waltman) (2002-11-26)
Re: C++ object interfaces to C syring@email.com (Karl M. Syring) (2002-11-26)
| List of all articles for this month |
From: "Karl M. Syring" <syring@email.com>
Newsgroups: comp.compilers
Date: 26 Nov 2002 22:13:47 -0500
Organization: Compilers Central
References: 02-11-145
Keywords: C++
Posted-Date: 26 Nov 2002 22:13:47 EST

Gabor DEAK JAHN wrote:
> Do you know of any conversion tool that could translate C++ object
> interfaces into C (OLE or similar)? I don't need the conversion of the
> actual method source codes, just something to help turn a class
> definition of a few private fields and public methods into the
> old-fashioned, macro-intensive C-style vtbl and method declarations ...


I do not know of a perfect solution, but Swig
(http://www.swig.org/compare.html) may be an useful tool. Then there are gcc
backends like gcc_xml (http://www.gccxml.org/HTML/Index.html) or source code
translation tools like OpenC++
(http://www.csg.is.titech.ac.jp/~chiba/openc++.html) that may give you a head
start.


Karl M. Syring


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.