Re: Import a C library
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