[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interfacing to I/O boards
- To: info-mcl@cambridge.apple.com
- Subject: Re: Interfacing to I/O boards
- From: dblamkins@aol.com
- Date: Fri, 14 Aug 92 05:37:40 EDT
John Doleac wrote, in a message dated Wed, 12 Aug 1992 15:19-0400
"I want to call C functions compiled using Symantec's Think C development
system.
...
The manual tells how to use foreign function calls for code
compiled by MPW. This does not work for Think C. Can anyone
recommend a way to overcome this problem?"
This was discussed a while back on info-mcl - I don't know whether it was far
enough back to ha
ve made it into the archives on the CD-ROM. The gist of it is that THINK C
doesn't create MPW-compatible object files, so you can't directly load THINK
C foreign function code into MCL.
I believe there are two workarounds:
1) If you have THINK Pascal, you can use it to create a library consisting of
just your THINK C project. THINK Pascal libraries are the same as MPW object
files, and can be used by MCL's FF loader.
2) There is a user contribution on the MCL 2.0 CD-ROM that seems to have
something to do with loading FF code directly from a THINK C project file. I
can't vouch for this, as I don't own THINK C, but it's worth a look.
Dave