pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Reichstadt <lxr@mac.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Cannot link against libpq on macOS
Date: Wed, 20 Sep 2023 13:13:25 -0700
Message-ID: <660E0989-8440-48E6-9911-E77DEAF41C39@mac.com> (raw)

Hello,

I have been struggling with trying to use a current version of libpq to link against on macOS in Xcode. It seems that nothing works, nobody on the web eventually succeeded either as far as I found so far. I try to write a small sample client. I started with the public source download to built libpq itself, which did work. But I am lost as to what files to actually include in my project then. I dragged lib, include, libpq into my project, but then it the compiler complains about the header internal references, so I need to remove lib/ in front of any includes in files, or it doesn’t get found. It makes no difference if I add Linker flags or search paths.

PLease, can someone help?

Thanks,
Alex




Message-ID: <660E0989-8440-48E6-9911-E77DEAF41C39@mac.com>
Permalink:  ../660E0989-8440-48E6-9911-E77DEAF41C39@mac.com/
Also on:    postgresql.org/message-id/660E0989-8440-48E6-9911-E77DEAF41C39@mac.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: lxr@mac.com
  Subject: Re: Cannot link against libpq on macOS
  In-Reply-To: <660E0989-8440-48E6-9911-E77DEAF41C39@mac.com>
  References: <660E0989-8440-48E6-9911-E77DEAF41C39@mac.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox