Article View: comp.lang.objective-c
Article #409Re: Q: combining ObjC and C++ using gcc
From: Martin Cracauer
Date: Wed, 14 Jun 1995 00:00
Date: Wed, 14 Jun 1995 00:00
38 lines
2213 bytes
2213 bytes
Lorenzo De Leon <lorenzod@mcs.com> writes: >cracauer@wavehh.hanse.de (Martin Cracauer) wrote: >>Ted.Belding@umich.edu (Theodore C. Belding) writes: >> >>>The NeXTSTEP manual _Object-oriented programming and the >>>objective C language_ by NeXT says on p173-176 that C++ code >>>can be combined with Objective C code using their compiler. >>>Since the NeXT compiler is essentially gcc, from what I've heard, >>>I was wondering if this is also possible using gcc, or if it >>>is only possible under NeXTSTEP. I didn't see >>>anything on this in the online gcc docs or in the g++ or ObjC FAQs. >>>Are there any command-line options that are necessary to do this? >>>Would I invoke gcc or g++? Thanks for any info! >> >>Currently, no mixing in one source file possible. You have to write >>C++ and ObjC source in seperate files and make them communicate via C >>structs and simple C functions. >> >>The runtimes seems compatible, some test programs of mine worked (but >>didn't stress it). >> >>Martin >>-- >A .M (versus a .m) file can have both Objective C and C++. The object >structures are different of course. My gcc-2.6.3-ObjC-Patches doesn't even recognize *.M as source file at all. It's hard to beleive anyway since there is no common parser. Where does this information come from? Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@wavehh.hanse.de>. No NeXTMail, please. Norderstedt/Hamburg, Germany. Fax +49 40 522 85 36. This is a private address. At (netless) work programming in data analysis.
Technical Details
Message-ID:
<1995Jun14.070813.4109@wavehh.hanse.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Ted.Belding-0906951602450001@pm051-09.dialip.mich.net> <1995Jun12.084500.27735@wavehh.hanse.de> <3riu1b$3of@News1.mcs.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,adcdca2d0a2e1d3 X-Google-Attributes: gid11318c,public X-Google-Thread: 1111a3,adcdca2d0a2e1d3 X-Google-Attributes: gid1111a3,public From: cracauer@wavehh.hanse.de (Martin Cracauer) Subject: Re: Q: combining ObjC and C++ using gcc Date: 1995/06/14 Message-ID: <1995Jun14.070813.4109@wavehh.hanse.de> X-Deja-AN: 104467165 references: <Ted.Belding-0906951602450001@pm051-09.dialip.mich.net> <1995Jun12.084500.27735@wavehh.hanse.de> <3riu1b$3of@News1.mcs.com> organization: The Internet newsgroups: comp.lang.objective-c,gnu.gcc.help