Cannot link against libpq on macOS

From: "A(dot) Reichstadt" <lxr(at)mac(dot)com>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Cannot link against libpq on macOS
Date: 2023-09-20 20:13:25
Message-ID: 660E0989-8440-48E6-9911-E77DEAF41C39@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2023-09-20 20:39:58 Re: Database selection
Previous Message veem v 2023-09-20 19:47:44 Database selection