• 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: Import a C library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Import a C library


  • Subject: Re: Import a C library
  • From: Scott Stevenson <email@hidden>
  • Date: Mon, 18 Oct 2004 16:14:24 -0700


On Oct 18, 2004, at 3:28 PM, Don Willems wrote:

I'm trying to use a C library in my Cocoa project.
I've added the library (libhwr.a) to my project (it shows up as a framework, but it is not expandable, I can't see any headers) and included it with the following instruction #import <libhwr/hwrutils.h>.
But the compiler gives an error: libhwr/hwrutils.h: No such file or directory.
I've tried including the headers in my project, but it does not help.

Unlike a framework, a library is not a bundle so it doesn't have subdirectories.

You need to track down the libhwr.h file and copy it into your project as well. Then, import it like this:

#import "libhwr.h"

No angle brackets. :)


- Scott



--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Import a C library (From: Don Willems <email@hidden>)

  • Prev by Date: Re: dictionaryWithContentsOfURL Questons
  • Next by Date: Re: Pasteboards
  • Previous by thread: Import a C library
  • Next by thread: Re: Import a C library
  • Index(es):
    • Date
    • Thread