🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.objective-c
Article #386

Objective-C and C++ (at the same time)

#386
From: Mark Gritter
Date: Thu, 24 Feb 1994 04:38
19 lines
1920 bytes
While gnu gcc (version 2.3.3) will compile both C++ and Objective C, it  
won't do both at once.  Is there a compiler that will recognize both C++  
and Objective C in the same file?  (Or a way to trick gcc into doing so?)   
Will I have to resort to "plain" c functions to communicated between  
objects written in the two languages, or is there a better way?

I'm writing an application for NeXTstep (which mean's I'm basically stuck  
with ObjC), but I would like to use a large amount of C++ code that I have  
already written and debugged on other platforms.

Thanks in advance...

--
/-Mark Gritter-----mgritter@gac.edu--------------------------\
|"Had I been present at the Creation, I would have given some|
|useful hints for the better ordering of the universe."      |
|   --ALFONSO THE WISE, KING OF CASTILE 1221-1284            |
|   Said after studying the Ptolemaic system.                |
\------------------------------------------------------------/
Technical Details
Message-ID: <2khavrINN9ph@news.gac.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!gatech!news-feed-2.peachnet.edu!umn.edu!mr.net!msc.edu!news.gac.edu!news.gac.edu!usenet

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1111a3,bfb0af118239035a,start
X-Google-Attributes: gid1111a3,public
X-Google-Thread: 109fba,bfb0af118239035a,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: f9256,bfb0af118239035a,start
X-Google-Attributes: gidf9256,public
X-Google-Thread: 10ba33,bfb0af118239035a,start
X-Google-Attributes: gid10ba33,public
X-Google-ArrivalTime: 1994-02-23 20:38:19 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!gatech!news-feed-2.peachnet.edu!umn.edu!mr.net!msc.edu!news.gac.edu!news.gac.edu!usenet
From: mgritter@gac.edu (Mark Gritter)
Newsgroups: comp.lang.objective-c,comp.lang.c++,comp.sys.next.programmer,gnu.g++.help
Subject: Objective-C and C++ (at the same time)
Date: 24 Feb 1994 04:38:19 GMT
Organization: Gustavus Adolphus College
Lines: 19
Message-ID: <2khavrINN9ph@news.gac.edu>
NNTP-Posting-Host: guajillo.gac.edu