Cannot link against libpq on macOS - Mailing list pgsql-general

From A. Reichstadt
Subject Cannot link against libpq on macOS
Date
Msg-id 660E0989-8440-48E6-9911-E77DEAF41C39@mac.com
Whole thread Raw
List 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
nothingworks, 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
toactually include in my project then. I dragged lib, include, libpq into my project, but then it the compiler
complainsabout the header internal references, so I need to remove lib/ in front of any includes in files, or it
doesn’tget found. It makes no difference if I add Linker flags or search paths. 

PLease, can someone help?

Thanks,
Alex


pgsql-general by date:

Previous
From: veem v
Date:
Subject: Database selection
Next
From: Laurenz Albe
Date:
Subject: Re: Database selection