Article View: comp.lang.objective-c
Article #408Re: Q: combining ObjC and C++ using gcc
From: Lorenzo De Leon
Date: Tue, 13 Jun 1995 00:00
Date: Tue, 13 Jun 1995 00:00
28 lines
1867 bytes
1867 bytes
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. Lorenzo De Leon NationsBanc-CRT
Technical Details
Message-ID:
<3riu1b$3of@News1.mcs.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<Ted.Belding-0906951602450001@pm051-09.dialip.mich.net> <1995Jun12.084500.27735@wavehh.hanse.de>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: Lorenzo De Leon <lorenzod@mcs.com> Subject: Re: Q: combining ObjC and C++ using gcc Date: 1995/06/13 Message-ID: <3riu1b$3of@News1.mcs.com> X-Deja-AN: 104330344 references: <Ted.Belding-0906951602450001@pm051-09.dialip.mich.net> <1995Jun12.084500.27735@wavehh.hanse.de> to: cracauer@wavehh.hanse.deL content-type: text/plain; charset=iso-8859-1 organization: MCSNet Services x-url: news:1995Jun12.084500.27735@wavehh.hanse.de mime-version: 1.0 newsgroups: comp.lang.objective-c,gnu.gcc.help x-mailer: Mozilla 1.1b3 (Macintosh; I; 68K)