Article View: comp.lang.objective-c
Article #413Re: Q: combining ObjC and C++ using gcc
From: Martin Cracauer
Date: Mon, 12 Jun 1995 00:00
Date: Mon, 12 Jun 1995 00:00
25 lines
1697 bytes
1697 bytes
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 -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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:
<1995Jun12.084500.27735@wavehh.hanse.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Ted.Belding-0906951602450001@pm051-09.dialip.mich.net>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/12 Message-ID: <1995Jun12.084500.27735@wavehh.hanse.de> X-Deja-AN: 104330342 references: <Ted.Belding-0906951602450001@pm051-09.dialip.mich.net> organization: The Internet newsgroups: comp.lang.objective-c,gnu.gcc.help