Path: utzoo!utgpu!watmath!att!ucbvax!husc6!endor!siegel From: siegel@endor.harvard.edu (Rich Siegel) Newsgroups: comp.sys.mac Subject: Re: linking code generated by Lightspeed Pascal and Lightspeed C Keywords: Pascal & C Message-ID: <2396@husc6.harvard.edu> Date: 8 Aug 89 15:28:19 GMT References: <877@umb.umb.edu> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 26 In article <877@umb.umb.edu> mescobr@umb.umb.edu (Martha L. Escobar) writes: >Does anyone know how to link code written in Lightspeed Pascal to code >written in Lightspeed C? If you're using LightspeedC 3.0 and Lightspeed Pascal 2.0, you can build your C code as a library, and add it directly to a Lightspeed Pascal project. Some restrictions apply: the routines written in C must be declared "pascal", string or floating-point constants aren't supported, and static or global initializations aren't supported. Otherwise, it works; parts of Lightspeed Pascal were written with LightspeedC. R. ~~~~~~~~~~~~~~~ Rich Siegel Staff Software Developer Symantec Corporation, Language Products Group Internet: siegel@endor.harvard.edu UUCP: ..harvard!endor!siegel "When it comes to my health, I think of my body as a temple - or at least a moderately well-managed Presbyterian youth center." - Emo Phillips ~~~~~~~~~~~~~~~