Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!ogicse!zephyr.ens.tek.com!vice!bobb From: bobb@vice.ICO.TEK.COM (Bob Beauchaine) Newsgroups: comp.lang.pascal Subject: Re: C PASCAL INTERFACE Message-ID: <7236@vice.ICO.TEK.COM> Date: 5 Apr 91 23:03:21 GMT References: <2941@cod.NOSC.MIL> <2257@wet.UUCP> <1991Apr5.211211.24087@ux1.cso.uiuc.edu> Reply-To: bobb@vice.ICO.TEK.COM (Bob Beauchaine) Organization: Tektronix, Inc., Beaverton, OR. Lines: 27 In article <1991Apr5.211211.24087@ux1.cso.uiuc.edu> amead@s.psych.uiuc.edu (alan mead) writes: >seth@wet.UUCP (Seth Olitzky) writes: > > >Actually, I think any .OBJ file can be linked to Turbo Pascal (probably >most other popular compilers as well). The problem is whether or not >pascal can use the code. > >The answer is usually yes--Ohlsen and Stoker have a longish chapter on >linking C with Turbo Pascal in _Advanced Techniques in Turbo Pascal_ >(<- that's only an approximate title :( > Well, as someone who *has* done this in the past, I have *never* found a .OBJ file that I did not compile myself that would link with Turbo Pascal (unless it was expressly written to do so). Borland put such stringent requirements on linking external modules that for all intents and purposes it can't be done unless you are willing to write the code yourself. /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ Bob Beauchaine bobb@vice.ICO.TEK.COM C: The language that combines the power of assembly language with the flexibility of assembly language.