Path: utzoo!attcan!uunet!husc6!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!rpi!rpics!loffredd From: loffredd@rpics (Dave Loffredo) Newsgroups: comp.windows.x Subject: Re: OBJECTIVE-C COMPATIBLE WITH XLIB AND XTLIB? Message-ID: <32@rpi.edu> Date: 21 Dec 88 16:50:44 GMT References: <8812200759.AA06418@ATHENA.MIT.EDU> Sender: usenet@rpi.edu Reply-To: loffredd@turing.cs.rpi.edu (Dave Loffredo) Organization: RPI CS Dept. Lines: 23 In article <8812200759.AA06418@ATHENA.MIT.EDU> ISSLCK@NUSVM.BITNET (Law Chee Keong) writes: >Can anyone tell me if I can use Objective-C to call Xlib and Xtlib >functions. I am starting a project which may require doing exactly this and see no possible incompatibility. There is really nothing in either package (to my knowledge) that precludes their mutual use. >If yes, does that imply that it is possible to link code written in >Objective-C with object code or library files written in C? Of course it is! I do it all the time! The Objective-C compiler just performs a precompile into "straight" C. When you eventually link modules, you are just linking normal ".o" files ... same as always. ----------------------------------------------------------------------------- David T. Loffredo | "These are MY views, Email: loffredd@turing.cs.rpi.edu | and you can't have them!" Phone: (518) 274-6366 (home) |