Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!ukc!ox-prg!oxuniv!speedy From: speedy@vax.oxford.ac.uk Newsgroups: comp.lang.pascal Subject: Re: Linking Turbo Pascal with Microsoft C Library Message-ID: <1991Jun26.100914.834@vax.oxford.ac.uk> Date: 26 Jun 91 09:09:14 GMT References: <27280@adm.brl.mil> <744@sun4dts.dts.ine.philips.nl> Organization: Oxford University Computing Service Lines: 24 In article <744@sun4dts.dts.ine.philips.nl>, derek@sun4dts.dts.ine.philips.nl (derek) writes: > A893700%CUCSC.BITNET@yalevm.ycc.yale.edu (Dominic Chow, The Chinese University of Hong Kong) writes: > >>Does anyone know how to link Turbo Pascal program with Microsoft C >>Libraries? > >>I recently got a library written in Microsoft C (6.00 I think) and I know >>to make use of some of the routines in my Turbo Pascal program. I try to >>extract the related object modules and $L into the program but it doesn't >>work. > > It won't. Microsoft C is quite incompatible with TP (IMHO) unless something has > changed, which I doubt. It seems there's some kind of headers and things at the > assembly end that aren't allowed by TP with the $L statement. Sorry about being > vague about this - I don't have the facts to hand - just trust me - they don't > fit together. > :-The reason why they dont fit together is code segment names--Turbos code segement is called 'CODE' I think TC's is 'DATA' or 'TEXT' or something. This is also why you cant use the TC library code or any TC code that relies on it in TP.