Xref: utzoo comp.lang.pascal:5962 comp.lang.c:37865 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!jarthur!uunet!unisoft!hoptoad!wet!seth From: seth@wet.UUCP (Seth Olitzky) Newsgroups: comp.lang.pascal,comp.lang.c Subject: Re: C PASCAL INTERFACE Message-ID: <2257@wet.UUCP> Date: 29 Mar 91 20:37:31 GMT References: <2941@cod.NOSC.MIL> Followup-To: comp.lang.pascal Organization: Wetware Diversions, San Francisco Lines: 24 In article <2941@cod.NOSC.MIL> vtran@cod.NOSC.MIL (Viet D. Tran) writes: > >I have programs that were written in two different languages, Pascal >and C. Now, I am having trouble combining them together, or linking >them in the compiling process (using either Pascal or C compiler) to >make only one executable file. If anyone knows how to do mixed language >programs with Pascal and C (such as C and In Line Assembly), or has any >other suggestions, please let me know. Thanks. A lot depends on what compilers and target machine you are using. Borland pascal TPU are not compatible with Borland C objects. You will need to have two compilers from the same vendor such as the Microsoft C and Pascal compiler or possible the Jensen (JPI) family of compilers. Be very careful when using library calls as this can pull in lots of stuff. The problem with mixing code is that you might pull in identical functions from two different libraries and create an unnecessarily large program. . -- ----------------------------------------------------------------------------- Seth Olitzky seth@wet ...!sun!hoptoad!wet!seth ----------------------------------------------------------------------------