RE: C language in obj-c
RE: C language in obj-c
- Subject: RE: C language in obj-c
- From: email@hidden
- Date: Wed, 29 Apr 2009 06:51:53 -0400
That depends upon the nature of the existing code...
Quoting fawad shafi <email@hidden>:
thanks for this useful info.
is it possible?
existing code that (possibly written in C) that we can easily port
over to obj-c with minimum effort.
Regards,
Fawad Shafi
CC: email@hidden
From: email@hidden
To: email@hidden
Subject: Re: C language in obj-c
Date: Wed, 29 Apr 2009 11:33:54 +0100
On 29 Apr 2009, at 11:29, fawad shafi wrote:
> for example i write one program in c language and then compile it,
> the compiler will create the one .obj file for us. if i wana use
> that obj file in xcode or obj-c, is it possible??
The system compiler on Mac OS X doesn't make files with the extension
".obj", even for plain C code. That's why I suspected you might be
talking about some other compiler (my guess being Microsoft's, since
that's the most common place where you might see a ".obj" extension).
Anyway, the easiest thing to do is to put your C source files into
your Xcode project and it will compile them and link them against the
rest of your program. Then you don't need to bother about the object
files at all.
Kind regards,
Alastair.
p.s. Please always reply to the list as well as directly.
--
http://alastairs-place.net
_________________________________________________________________
Rediscover HotmailĀ®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile2_042009_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden