Re: Link C library in Cocoa.
Re: Link C library in Cocoa.
- Subject: Re: Link C library in Cocoa.
- From: Theodore Petrosky <email@hidden>
- Date: Thu, 23 Jun 2005 07:31:04 -0700 (PDT)
The method I use is for linking to the postgresql
libraries...
right click and get info on the target
add the path to the headers and library
/usr/local/pgsql/include
/usr/local/pgsql/lib
and add under under other linker flags:
-L/usr/local/pgsql/lib -lpq
then in my project I can add:
#import <libpq-fe.h>
to access the libraries.
I have no idea if there is a better way, or if this is
the "correct" way. When I asked the list a few years
ago I got the same answers that you did and they
really didn't help. I downloaded a couple of working
example programs that were accessing the database I
wanted to use and this was what I found they were
doing.
Ted
>Message: 16
>Date: Thu, 23 Jun 2005 11:52:57 +0100
>From: Finlay Dobbie <email@hidden>
>Subject: Re: Link C library in Cocoa.
>To: Zhi Cong Leo Liang <email@hidden>
>Cc: email@hidden
>Message-ID:
<email@hidden>
>Content-Type: text/plain; charset=ISO-8859-1
>
>On 6/23/05, Zhi Cong Leo Liang <email@hidden>
wrote:
>> Hello,
>> This is my first email for this mailing list, just
a newbie question:
>> Is it possble to link my C library in Cocoa
pplication? If it is
>> possible, how to do it, please give me direction.
>
>The same way that you would do it for a non-Cocoa
application. Just
>add it to your project.
>
>-- Finlay
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
_______________________________________________
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