Skip site navigation (1) Skip section navigation (2)

How to include pgsql static libraries in your own app written in Xcode?

From: "Peter K(dot) Stys" <pkstys(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: How to include pgsql static libraries in your own app written in Xcode?
Date: 2009-11-03 02:07:47
Message-ID: 77124270911021807n53181b48t80815259317ecb95@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
I am trying to write a plugin (for REALbasic) in C using Xcode on Mac OS X.
I have succeeded except that my plugin depends on dylibs that must be
installed on each client machine.

I'd like to create a plugin with all pgsql libs statically linked into my
plugin to create a standalone solution.

I've added the libpq.a library and included libpq-fe.h and postgres_ext.h
that it needs.  The linker reports a bunch of errors:

  "_BIO_free", referenced from:
      _client_cert_cb in libpq.a(fe-secure.o)
      _client_cert_cb in libpq.a(fe-secure.o)
      _client_cert_cb in libpq.a(fe-secure.o)
      _client_cert_cb in libpq.a(fe-secure.o)

etc...

I'm sure this is a straighfwd issue, but I have no idea what to try to fix
this and link in the libraries to my plugin.

Any pointers would be greatly appreciated,
Regards,
Peter.


-- 
---------------------------------------------
Peter K. Stys, MD
Dept. of Clinical Neurosciences
Hotchkiss Brain Institute
University of Calgary
tel (403) 210-8646
---------------------------------------------

Responses

pgsql-novice by date

Next:From: Tom LaneDate: 2009-11-03 03:43:06
Subject: Re: How to include pgsql static libraries in your own app written in Xcode?
Previous:From: Don FoxDate: 2009-11-02 22:56:42
Subject: Re: Install problems for postgresql-8.4.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group