Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!decwrl!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!boz From: boz@eleazar.dartmouth.edu (John Boswell) Newsgroups: comp.sys.mac.programmer Subject: C code in a Pascal program Message-ID: <13972@dartvax.Dartmouth.EDU> Date: 17 Jun 89 07:29:27 GMT Sender: news@dartvax.Dartmouth.EDU Reply-To: boz@eleazar.dartmouth.edu (John Boswell) Distribution: comp.sys.mac.programmer Organization: Dartmouth College, Hanover, NH Lines: 17 Hi. I am in the process of writing a program that will do curve-fitting to various functions. My problem is that I only really speak Pascal but all of the actual number-crunching routines I am using (culled from the literature) are in C. Is there a way I can compile the C functions, and then somehow link them to my Pascal program when I compile it? In other words, can you call C procedures from Pascal? There is some mention of being able to call Assembly-language routines that you compile with ThinkC; can I call C routines? Any help along these lines would be *greatly* appreciated. Thanks. ************************************************************************* John Boswell boz@eleazar.dartmouth.edu Dept. of Chemistry boz@dartCMS1.BITNET Dartmouth College, Hangover, Nude Hampster 03755