Re: [somewhat OT] portable C under OjbC
Re: [somewhat OT] portable C under OjbC
- Subject: Re: [somewhat OT] portable C under OjbC
- From: Sam Goldman <email@hidden>
- Date: Wed, 06 Feb 2002 17:47:21 -0800
Well, since Obj-C and straight C work so well together (as they should), it
would make sense to write a C API and then use it in a Cocoa/Obj-C project.
The C API would have to be in straight C only, though. Example: the MySQL C
API can be used from Cocoa/Obj-C very easily and can also be used in other
languages on other platforms.
I don't know of a compatibility checker, but as long as you only use
straight C, it *will* be portable. I guess you can check to see if your C
code is C by compiling it with gcc and C-only options. (i.e. Don't use
-lstdc++)
Hope this helps,
Sam
On 2/6/02 3:46 PM, "Boz Jennings" <email@hidden> wrote:
>
This is somewhat off topic but I am interested in writing C that is
>
wrapped in ObjC so that the C code is portable. The details of portable
>
C code gets foggy in my head so I'm wondering if there is a tool that
>
can check portability automagically. If you know of one (or a better
>
place to ask this question) please let me know.
>
>
... back to lurking and learning.
>
>
,boz
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
--
Windows is a 32-bit patch to a 16-bit shell for an 8-bit operating system
written for a 4-bit processor by a 2-bit company without 1 bit of sense.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.