• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Integrating a C command line tool into Objective-C application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Integrating a C command line tool into Objective-C application


  • Subject: Re: Integrating a C command line tool into Objective-C application
  • From: "Alexey Zakhlestin" <email@hidden>
  • Date: Sat, 8 Sep 2007 11:24:33 +0400

well, the proper-proper solution is to make a "static library" out of
that command-line application and link your cocoa-app to that library.
This way it would be possible to change (later) that library and both
of your apps would be up-to-date (after relinking)

but, anyway, your problem seem to be related to some compiler flags
(or, some typo)

On 9/8/07, Jason Wiggins <email@hidden> wrote:
> Hello everyone,
>
> Firstly I'd like to say that I've learnt a lot from reading the
> discussions over the past year or so and it's helped me with my coding
> and general mind set for coding in obj-c. Thanks everyone!
> Now my question. I've read through the documentation and also done
> google searches but I am yet to find *exactly* what I'm looking for to
> help me. A colleague wrote a command line tool in C a while back and
> now I want to integrate that tool into my obj-c code. I'm not sure how
> to go about this. I started coding on obj-c about a year ago on and
> off and haven't coded in C before, but looking through some books I
> have a general idea in that area. The problem is the integration, ie
> the Main function etc. Do I make the C code a new class and strip out
> the main function? I tried using that code verbatim (minus Main) and
> tried to turn it all into a method but the compiler said I can't have
> nested functions. If anybody can help in this area, I would be most
> appreciative.
>
> Regards,
> Jason Wiggins
> _______________________________________________
>
> 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
>



--
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
_______________________________________________

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

References: 
 >Integrating a C command line tool into Objective-C application (From: Jason Wiggins <email@hidden>)

  • Prev by Date: Integrating a C command line tool into Objective-C application
  • Next by Date: Re: Integrating a C command line tool into Objective-C application
  • Previous by thread: Integrating a C command line tool into Objective-C application
  • Next by thread: Re: Integrating a C command line tool into Objective-C application
  • Index(es):
    • Date
    • Thread