home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!news
- From: jhl@naif.jpl.nasa.gov (Jay Lieske)
- Subject: Re: Fortran callable rountines in THINK C
- Message-ID: <1992Sep1.211401.10314@elroy.jpl.nasa.gov>
- Sender: news@elroy.jpl.nasa.gov (Usenet)
- Nntp-Posting-Host: achilles.jpl.nasa.gov
- Organization: Jet Propulsion Laboratory
- References: <1992Sep1.113040.943@galaxy.gov.bc.ca>
- Distribution: na
- Date: Tue, 1 Sep 1992 21:14:01 GMT
- Lines: 32
-
- In article <1992Sep1.113040.943@galaxy.gov.bc.ca> cconstantine@galaxy.gov.bc.ca
- writes:
- >I will be working on a program with a friend of mine that will interface some
- >Fortran code (Language Systems) and would like my C libraries to be callable
- >form Fortran. Is there a specific way I need to do this? I'm using THINK C
- >5.0.2 on an LCII (now called a Perforama 400) and System 7.0.1 w/ tune-up.
- >
- >Thanks muchly!!!!
- >--
- >Carl B. Constantine
- >CCONSTANTINE@galaxy.gov.bc.ca
- > "Opinions are mine only!!"
- >
-
- In principle, I think it can be done, but it's rather tough with Think
- products. Specifically, I tried this a few years ago using Think Pascal.
- The basic problem is that Think compilers are case-sensitive and its
- linker is case-insensitive whereas the MPW Pascal compiler is case
- insensitive but the linker is case-sensitive. For Pascal programs that
- means that the ENTRY points must be all caps. One interesting and
- potentially useful side effect of all this is that Think and MPW libraries
- may be intermixed--for example MPW's NEWPTR is "different" from
- Think's NewPtr because of the capitalization.
-
- At one time Rich Siegel mentioned that Think Pascal might look into
- the problem, but I don't believe they have done anything up to now. It's
- much easier just to recompile things with MPW compilers (after using
- Think's excellent debugging tools) and link with Language Systems Fortran.
-
-
- Jay H. Lieske jhl@naif.jpl.nasa.gov
-
-